Show / Hide Table of Contents

Class ConventionalRegistrarBase

Inheritance
object
ConventionalRegistrarBase
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
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Reflection.Assembly assembly

AddType(IServiceCollection, Type)

Declaration
public abstract void AddType(IServiceCollection services, Type type)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Type type

AddTypes(IServiceCollection, params Type[])

Declaration
public virtual void AddTypes(IServiceCollection services, params Type[] types)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Type[] types

CreateServiceDescriptor(Type, Type, List<Type>, ServiceLifetime)

Declaration
protected virtual ServiceDescriptor CreateServiceDescriptor(Type implementationType, Type exposingServiceType, List<Type> allExposingServiceTypes, ServiceLifetime lifeTime)
Parameters
Type Name Description
System.Type implementationType
System.Type exposingServiceType
System.Collections.Generic.List<T><System.Type> allExposingServiceTypes
Microsoft.Extensions.DependencyInjection.ServiceLifetime lifeTime
Returns
Type Description
Microsoft.Extensions.DependencyInjection.ServiceDescriptor

GetDefaultLifeTimeOrNull(Type)

Declaration
protected virtual ServiceLifetime? GetDefaultLifeTimeOrNull(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
Microsoft.Extensions.DependencyInjection.ServiceLifetime?

GetDependencyAttributeOrNull(Type)

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

GetExposedServiceTypes(Type)

Declaration
protected virtual List<Type> GetExposedServiceTypes(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Collections.Generic.List<T><System.Type>

GetLifeTimeOrNull(Type, DependencyAttribute?)

Declaration
protected virtual ServiceLifetime? GetLifeTimeOrNull(Type type, DependencyAttribute? dependencyAttribute)
Parameters
Type Name Description
System.Type type
DependencyAttribute dependencyAttribute
Returns
Type Description
Microsoft.Extensions.DependencyInjection.ServiceLifetime?

GetRedirectedTypeOrNull(Type, Type, List<Type>)

Declaration
protected virtual Type? GetRedirectedTypeOrNull(Type implementationType, Type exposingServiceType, List<Type> allExposingServiceTypes)
Parameters
Type Name Description
System.Type implementationType
System.Type exposingServiceType
System.Collections.Generic.List<T><System.Type> allExposingServiceTypes
Returns
Type Description
System.Type

GetServiceLifetimeFromClassHierarchy(Type)

Declaration
protected virtual ServiceLifetime? GetServiceLifetimeFromClassHierarchy(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
Microsoft.Extensions.DependencyInjection.ServiceLifetime?

IsConventionalRegistrationDisabled(Type)

Declaration
protected virtual bool IsConventionalRegistrationDisabled(Type type)
Parameters
Type Name Description
System.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
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Type implementationType
System.Collections.Generic.List<T><System.Type> 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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft