Class CachedServiceProviderBase
Inheritance
CachedServiceProviderBase
Implements
IKeyedServiceProvider
Assembly: Volo.Abp.Core.dll
Syntax
public abstract class CachedServiceProviderBase : ICachedServiceProviderBase, IKeyedServiceProvider, IServiceProvider
Constructors
CachedServiceProviderBase(IServiceProvider)
Declaration
protected CachedServiceProviderBase(IServiceProvider serviceProvider)
Parameters
Properties
CachedServices
Declaration
protected ConcurrentDictionary<ServiceIdentifier, Lazy<object?>> CachedServices { get; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Methods
GetKeyedService(Type, object?)
Declaration
public object? GetKeyedService(Type serviceType, object? serviceKey)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
object |
serviceKey |
|
Returns
GetRequiredKeyedService(Type, object?)
Declaration
public object GetRequiredKeyedService(Type serviceType, object? serviceKey)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
object |
serviceKey |
|
Returns
GetService(Type)
Declaration
public virtual object? GetService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
Returns
GetService(Type, Func<IServiceProvider, object>)
Declaration
public object GetService(Type serviceType, Func<IServiceProvider, object> factory)
Parameters
Returns
GetService(Type, object)
Declaration
public object GetService(Type serviceType, object defaultValue)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
object |
defaultValue |
|
Returns
GetService<T>(Func<IServiceProvider, object>)
Declaration
public T GetService<T>(Func<IServiceProvider, object> factory)
Parameters
Returns
Type Parameters
GetService<T>(T)
Declaration
public T GetService<T>(T defaultValue)
Parameters
Type |
Name |
Description |
T |
defaultValue |
|
Returns
Type Parameters
Implements
Microsoft.Extensions.DependencyInjection.IKeyedServiceProvider
Extension Methods