AutofacDependencyResolverSetAutofacDependencyResolverAccessor Method |
Sets the mechanism used to locate the current Autofac dependency resolver.
Namespace:
Autofac.Integration.Mvc
Assembly:
Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax public static void SetAutofacDependencyResolverAccessor(
Func<AutofacDependencyResolver> accessor
)
Public Shared Sub SetAutofacDependencyResolverAccessor (
accessor As Func(Of AutofacDependencyResolver)
)
Parameters
- accessor
- Type: SystemFuncAutofacDependencyResolver
A FuncTResult that returns an AutofacDependencyResolver
based on the current context. Set this to to return to the
default behavior.
See Also