src/Shared/EntityFramework/Infrastructure/DependencyResolution/DbConfigurationLoadedEventArgs.cs
/// <summary>
/// Adds a wrapping resolver to the configuration that is about to be locked. A wrapping
/// resolver is a resolver that incepts a service would have been returned by the resolver
/// chain and wraps or replaces it with another service of the same type.
/// </summary>
/// <typeparam name="TService">The type of service to wrap or replace.</typeparam>
/// <param name="serviceInterceptor">A delegate that takes the unwrapped service and key and returns the wrapped or replaced service.</param>
Adds a wrapping resolver to the configuration that is about to be locked. A wrapping
resolver is a resolver that incepts a service would have been returned by the resolver
chain and wraps or replaces it with another service of the same type.
Adds a wrapping resolver to the configuration that is about to be locked . A wrapping resolver is a resolver that incepts a service would have been returned by the resolver chain and wraps or replaces it with another service of the same type .
public void ReplaceService<TService>(Func<TService, object, TService> serviceInterceptor)
        {
            Check.NotNull(serviceInterceptor, "serviceInterceptor");
            AddDependencyResolver(
                new WrappingDependencyResolver<TService>(DependencyResolver, serviceInterceptor),
                overrideConfigFile: true);
        }
public void ReplaceService < TService > ( Func < TService , object , TService > serviceInterceptor ) { Check . NotNull ( serviceInterceptor , " " ) ; AddDependencyResolver ( new WrappingDependencyResolver < TService > ( DependencyResolver , serviceInterceptor ) , overrideConfigFile : true ) ; }
Adds a wrapping resolver to the configuration that is about to be locked.
Adds a wrapping resolver to the configuration that is about to be locked .
serviceInterceptor
Func<TService, object, TService>
A delegate that takes the unwrapped service and key and returns the wrapped or replaced service.
A delegate that takes the unwrapped service and key and returns the wrapped or replaced service .
typeparam
The type of service to wrap or replace.
The type of service to wrap or replace .