Class DefaultConventionalRegistrar
Inheritance
System.Object
DefaultConventionalRegistrar
Assembly: Volo.Abp.Core.dll
Syntax
public class DefaultConventionalRegistrar : ConventionalRegistrarBase, IConventionalRegistrar
Methods
AddType(IServiceCollection, Type)
Declaration
public override void AddType(IServiceCollection services, Type type)
Parameters
Type |
Name |
Description |
IServiceCollection |
services |
|
Type |
type |
|
Overrides
CreateServiceDescriptor(Type, Type, List<Type>, ServiceLifetime)
Declaration
protected virtual ServiceDescriptor CreateServiceDescriptor(Type implementationType, Type exposingServiceType, List<Type> allExposingServiceTypes, ServiceLifetime lifeTime)
Parameters
Type |
Name |
Description |
Type |
implementationType |
|
Type |
exposingServiceType |
|
List<Type> |
allExposingServiceTypes |
|
ServiceLifetime |
lifeTime |
|
Returns
Type |
Description |
ServiceDescriptor |
|
GetDependencyAttributeOrNull(Type)
Declaration
protected virtual DependencyAttribute GetDependencyAttributeOrNull(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
GetLifeTimeOrNull(Type, DependencyAttribute)
Declaration
protected virtual ServiceLifetime? GetLifeTimeOrNull(Type type, DependencyAttribute dependencyAttribute)
Parameters
Returns
Type |
Description |
System.Nullable<ServiceLifetime> |
|
GetRedirectedTypeOrNull(Type, Type, List<Type>)
Declaration
protected virtual Type GetRedirectedTypeOrNull(Type implementationType, Type exposingServiceType, List<Type> allExposingServiceTypes)
Parameters
Type |
Name |
Description |
Type |
implementationType |
|
Type |
exposingServiceType |
|
List<Type> |
allExposingServiceTypes |
|
Returns
GetServiceLifetimeFromClassHierarcy(Type)
Declaration
protected virtual ServiceLifetime? GetServiceLifetimeFromClassHierarcy(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
Type |
Description |
System.Nullable<ServiceLifetime> |
|
Implements
Extension Methods