DEV Community

Discussion on: Wiring up Ninject with ASP.NET Core 2.0

Collapse
 
tarakeshp profile image
Tarakesh Pulikonda • Edited

public class BaseController : Controller
{
public BaseController()
{
var ctx = HttpContext;
}
}

public class ValuesController: BaseController
{
public ValuesController() : base() {

}
}

HttpContext is null.
Any help is appreciated