Class AbpLazyServiceProvider
Inheritance
AbpLazyServiceProvider
Implements
IKeyedServiceProvider
Assembly: Volo.Abp.Core.dll
Syntax
[ExposeServices(new Type[] { typeof(IAbpLazyServiceProvider) })]
public class AbpLazyServiceProvider : CachedServiceProviderBase, IAbpLazyServiceProvider, ICachedServiceProviderBase, IKeyedServiceProvider, IServiceProvider, ITransientDependency
Constructors
AbpLazyServiceProvider(IServiceProvider)
Declaration
public AbpLazyServiceProvider(IServiceProvider serviceProvider)
Parameters
Methods
LazyGetRequiredService(Type)
Declaration
public virtual object LazyGetRequiredService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
Returns
LazyGetRequiredService<T>()
Declaration
public virtual T LazyGetRequiredService<T>()
Returns
Type Parameters
LazyGetService(Type)
Declaration
public virtual object? LazyGetService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
Returns
LazyGetService(Type, Func<IServiceProvider, object>)
Declaration
public virtual object LazyGetService(Type serviceType, Func<IServiceProvider, object> factory)
Parameters
Returns
LazyGetService(Type, object)
Declaration
public virtual object LazyGetService(Type serviceType, object defaultValue)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
object |
defaultValue |
|
Returns
LazyGetService<T>()
Declaration
public virtual T? LazyGetService<T>()
Returns
Type Parameters
LazyGetService<T>(Func<IServiceProvider, object>)
Declaration
public virtual T LazyGetService<T>(Func<IServiceProvider, object> factory)
Parameters
Returns
Type Parameters
LazyGetService<T>(T)
Declaration
public virtual T LazyGetService<T>(T defaultValue)
Parameters
Type |
Name |
Description |
T |
defaultValue |
|
Returns
Type Parameters
Implements
Microsoft.Extensions.DependencyInjection.IKeyedServiceProvider
Extension Methods