Show / Hide Table of Contents

Class DefaultConventionalRegistrar

Inheritance
System.Object
ConventionalRegistrarBase
DefaultConventionalRegistrar
Implements
IConventionalRegistrar
Inherited Members
ConventionalRegistrarBase.AddAssembly(IServiceCollection, Assembly)
ConventionalRegistrarBase.AddTypes(IServiceCollection, Type[])
ConventionalRegistrarBase.IsConventionalRegistrationDisabled(Type)
ConventionalRegistrarBase.TriggerServiceExposing(IServiceCollection, Type, List<Type>)
Namespace: Volo.Abp.DependencyInjection
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
ConventionalRegistrarBase.AddType(IServiceCollection, Type)

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
Type Description
DependencyAttribute

GetLifeTimeOrNull(Type, DependencyAttribute)

Declaration
protected virtual ServiceLifetime? GetLifeTimeOrNull(Type type, DependencyAttribute dependencyAttribute)
Parameters
Type Name Description
Type type
DependencyAttribute dependencyAttribute
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
Type Description
Type

GetServiceLifetimeFromClassHierarcy(Type)

Declaration
protected virtual ServiceLifetime? GetServiceLifetimeFromClassHierarcy(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
System.Nullable<ServiceLifetime>

Implements

IConventionalRegistrar

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft