Class ConventionalRegistrarBase
Inheritance
object
ConventionalRegistrarBase
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
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
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
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
Extension Methods