Class ConventionalRegistrarBase
- Namespace
- Volo.Abp.DependencyInjection
- Assembly
- Volo.Abp.Core.dll
public abstract class ConventionalRegistrarBase : IConventionalRegistrar
- Inheritance
-
ConventionalRegistrarBase
- Implements
-
- Derived
-
- Inherited Members
-
- Extension Methods
-
Constructors
ConventionalRegistrarBase()
protected ConventionalRegistrarBase()
Methods
AddAssembly(IServiceCollection, Assembly)
public virtual void AddAssembly(IServiceCollection services, Assembly assembly)
Parameters
services
IServiceCollection
assembly
Assembly
AddType(IServiceCollection, Type)
public abstract void AddType(IServiceCollection services, Type type)
Parameters
services
IServiceCollection
type
Type
AddTypes(IServiceCollection, params Type[])
public virtual void AddTypes(IServiceCollection services, params Type[] types)
Parameters
services
IServiceCollection
types
Type[]
CreateServiceDescriptor(Type, object?, Type, List<ServiceIdentifier>, ServiceLifetime)
protected virtual ServiceDescriptor CreateServiceDescriptor(Type implementationType, object? serviceKey, Type exposingServiceType, List<ServiceIdentifier> allExposingServiceTypes, ServiceLifetime lifeTime)
Parameters
implementationType
Type
serviceKey
object
exposingServiceType
Type
allExposingServiceTypes
List<ServiceIdentifier>
lifeTime
ServiceLifetime
Returns
- ServiceDescriptor
GetDefaultLifeTimeOrNull(Type)
protected virtual ServiceLifetime? GetDefaultLifeTimeOrNull(Type type)
Parameters
type
Type
Returns
- ServiceLifetime?
GetDependencyAttributeOrNull(Type)
protected virtual DependencyAttribute? GetDependencyAttributeOrNull(Type type)
Parameters
type
Type
Returns
- DependencyAttribute
GetExposedKeyedServiceTypes(Type)
protected virtual List<ServiceIdentifier> GetExposedKeyedServiceTypes(Type type)
Parameters
type
Type
Returns
- List<ServiceIdentifier>
GetExposedServiceTypes(Type)
protected virtual List<Type> GetExposedServiceTypes(Type type)
Parameters
type
Type
Returns
- List<Type>
GetLifeTimeOrNull(Type, DependencyAttribute?)
protected virtual ServiceLifetime? GetLifeTimeOrNull(Type type, DependencyAttribute? dependencyAttribute)
Parameters
type
Type
dependencyAttribute
DependencyAttribute
Returns
- ServiceLifetime?
GetRedirectedTypeOrNull(Type, Type, List<ServiceIdentifier>)
protected virtual Type? GetRedirectedTypeOrNull(Type implementationType, Type exposingServiceType, List<ServiceIdentifier> allExposingKeyedServiceTypes)
Parameters
implementationType
Type
exposingServiceType
Type
allExposingKeyedServiceTypes
List<ServiceIdentifier>
Returns
- Type
GetServiceLifetimeFromClassHierarchy(Type)
protected virtual ServiceLifetime? GetServiceLifetimeFromClassHierarchy(Type type)
Parameters
type
Type
Returns
- ServiceLifetime?
IsConventionalRegistrationDisabled(Type)
protected virtual bool IsConventionalRegistrationDisabled(Type type)
Parameters
type
Type
Returns
- bool
TriggerServiceExposing(IServiceCollection, Type, List<Type>)
protected virtual void TriggerServiceExposing(IServiceCollection services, Type implementationType, List<Type> serviceTypes)
Parameters
services
IServiceCollection
implementationType
Type
serviceTypes
List<Type>
TriggerServiceExposing(IServiceCollection, Type, List<ServiceIdentifier>)
protected virtual void TriggerServiceExposing(IServiceCollection services, Type implementationType, List<ServiceIdentifier> serviceTypes)
Parameters
services
IServiceCollection
implementationType
Type
serviceTypes
List<ServiceIdentifier>