DependencyResolver.SetResolver DependencyResolver.SetResolver DependencyResolver.SetResolver Method

Definition

Overloads

SetResolver(Object) SetResolver(Object) SetResolver(Object)

Provides a registration point for dependency resolvers using the provided common service locator when using a service locator interface.

SetResolver(IDependencyResolver) SetResolver(IDependencyResolver) SetResolver(IDependencyResolver)

Provides a registration point for dependency resolvers, using the specified dependency resolver interface.

SetResolver(Func<Type,Object>, Func<Type,IEnumerable<Object>>) SetResolver(Func<Type,Object>, Func<Type,IEnumerable<Object>>) SetResolver(Func<Type,Object>, Func<Type,IEnumerable<Object>>)

Provides a registration point for dependency resolvers using the specified service delegate and specified service collection delegates.

SetResolver(Object) SetResolver(Object) SetResolver(Object)

Provides a registration point for dependency resolvers using the provided common service locator when using a service locator interface.

public static void SetResolver (object commonServiceLocator);
static member SetResolver : obj -> unit
Public Shared Sub SetResolver (commonServiceLocator As Object)

Parameters

commonServiceLocator
Object Object Object

The common service locator.

SetResolver(IDependencyResolver) SetResolver(IDependencyResolver) SetResolver(IDependencyResolver)

Provides a registration point for dependency resolvers, using the specified dependency resolver interface.

public static void SetResolver (System.Web.Mvc.IDependencyResolver resolver);
static member SetResolver : System.Web.Mvc.IDependencyResolver -> unit
Public Shared Sub SetResolver (resolver As IDependencyResolver)

Parameters

resolver
IDependencyResolver IDependencyResolver IDependencyResolver

The dependency resolver.

SetResolver(Func<Type,Object>, Func<Type,IEnumerable<Object>>) SetResolver(Func<Type,Object>, Func<Type,IEnumerable<Object>>) SetResolver(Func<Type,Object>, Func<Type,IEnumerable<Object>>)

Provides a registration point for dependency resolvers using the specified service delegate and specified service collection delegates.

public static void SetResolver (Func<Type,object> getService, Func<Type,System.Collections.Generic.IEnumerable<object>> getServices);
static member SetResolver : Func<Type, obj> * Func<Type, seq<obj>> -> unit
Public Shared Sub SetResolver (getService As Func(Of Type, Object), getServices As Func(Of Type, IEnumerable(Of Object)))

Parameters

getService
Func<Type,Object>

The service delegate.

getServices
Func<Type,IEnumerable<Object>>

The services delegates.

Applies to