In ASP.NET MVC 5 is possible to obtain some dependency through DependencyResolver.Current.GetService. Is there something similar in ASP.NET Core?
Service available in Asp.net core, its within HttpContext
this.HttpContext.RequestServices
By using this service, it is possible to get service. and also you can use GetService method to retrieve the dependencies by specifying the type of the dependency:
this.HttpContext.RequestServices.GetService(typeof(ISomeService));