DependencyResolverExtensions::GetService<TService> Method (IDependencyResolver^)
Resolves singly registered services that support arbitrary object creation.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
public: generic<typename TService> [ExtensionAttribute] static TService GetService( IDependencyResolver^ resolver )
Parameters
- resolver
-
Type:
System.Web.Mvc::IDependencyResolver^
The dependency resolver instance that this method extends.
Type Parameters
- TService
The type of the requested service or object.
For more information about this method, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.
Show: