Show / Hide Table of Contents

Class ConventionalRegistrarBase

Inheritance
object
ConventionalRegistrarBase
ConventionalRegistrar_Tests.MyCustomConventionalRegistrar
DefaultConventionalRegistrar
Implements
IConventionalRegistrar
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.DependencyInjection
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
Type Name Description
IServiceCollection services
Assembly assembly

AddType(IServiceCollection, Type)

Declaration
public abstract void AddType(IServiceCollection services, Type type)
Parameters
Type Name Description
IServiceCollection services
Type type

AddTypes(IServiceCollection, params Type[])

Declaration
public virtual void AddTypes(IServiceCollection services, params Type[] types)
Parameters
Type Name Description
IServiceCollection services
Type[] types

CreateServiceDescriptor(Type, object?, Type, List<ServiceIdentifier>, ServiceLifetime)

Declaration
protected virtual ServiceDescriptor CreateServiceDescriptor(Type implementationType, object? serviceKey, Type exposingServiceType, List<ServiceIdentifier> allExposingServiceTypes, ServiceLifetime lifeTime)
Parameters
Type Name Description
Type implementationType
object serviceKey
Type exposingServiceType
List<ServiceIdentifier> allExposingServiceTypes
ServiceLifetime lifeTime
Returns
Type Description
ServiceDescriptor

GetDefaultLifeTimeOrNull(Type)

Declaration
protected virtual ServiceLifetime? GetDefaultLifeTimeOrNull(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
ServiceLifetime?

GetDependencyAttributeOrNull(Type)

Declaration
protected virtual DependencyAttribute? GetDependencyAttributeOrNull(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
DependencyAttribute

GetExposedKeyedServiceTypes(Type)

Declaration
protected virtual List<ServiceIdentifier> GetExposedKeyedServiceTypes(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
List<ServiceIdentifier>

GetExposedServiceTypes(Type)

Declaration
protected virtual List<Type> GetExposedServiceTypes(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
List<Type>

GetLifeTimeOrNull(Type, DependencyAttribute?)

Declaration
protected virtual ServiceLifetime? GetLifeTimeOrNull(Type type, DependencyAttribute? dependencyAttribute)
Parameters
Type Name Description
Type type
DependencyAttribute dependencyAttribute
Returns
Type Description
ServiceLifetime?

GetRedirectedTypeOrNull(Type, Type, List<ServiceIdentifier>)

Declaration
protected virtual Type? GetRedirectedTypeOrNull(Type implementationType, Type exposingServiceType, List<ServiceIdentifier> allExposingKeyedServiceTypes)
Parameters
Type Name Description
Type implementationType
Type exposingServiceType
List<ServiceIdentifier> allExposingKeyedServiceTypes
Returns
Type Description
Type

GetServiceLifetimeFromClassHierarchy(Type)

Declaration
protected virtual ServiceLifetime? GetServiceLifetimeFromClassHierarchy(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
ServiceLifetime?

IsConventionalRegistrationDisabled(Type)

Declaration
protected virtual bool IsConventionalRegistrationDisabled(Type type)
Parameters
Type Name Description
Type type
Returns
Type Description
bool

TriggerServiceExposing(IServiceCollection, Type, List<Type>)

Declaration
protected virtual void TriggerServiceExposing(IServiceCollection services, Type implementationType, List<Type> serviceTypes)
Parameters
Type Name Description
IServiceCollection services
Type implementationType
List<Type> serviceTypes

TriggerServiceExposing(IServiceCollection, Type, List<ServiceIdentifier>)

Declaration
protected virtual void TriggerServiceExposing(IServiceCollection services, Type implementationType, List<ServiceIdentifier> serviceTypes)
Parameters
Type Name Description
IServiceCollection services
Type implementationType
List<ServiceIdentifier> serviceTypes

Implements

IConventionalRegistrar

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform