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