DependencyResolverExtensions.GetService<TService> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resolves singly registered services that support arbitrary object creation.
public static TService GetService<TService> (this System.Web.Mvc.IDependencyResolver resolver);
static member GetService : System.Web.Mvc.IDependencyResolver -> 'Service
<Extension()>
Public Function GetService(Of TService) (resolver As IDependencyResolver) As TService
Type Parameters
- TService
The type of the requested service or object.
Parameters
- resolver
- IDependencyResolver
The dependency resolver instance that this method extends.
Returns
TService
The requested service or object.