I am building a throwaway application in MVC 6 and experimenting with different architectures for dependencies.
The problem I am facing is how to create a custom \'<
Why would you pass the HttpContext in the constructor? Why not directly access it wherever you want?
public MyAppContext(IDataService dataService) { HttpContext mycontext = HttpContext.Current; //do stuff here with mycontext }