Show / Hide Table of Contents

Class ServiceCollectionConventionalRegistrationExtensions

Inheritance
object
ServiceCollectionConventionalRegistrationExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Volo.Abp.Core.dll
Syntax
public static class ServiceCollectionConventionalRegistrationExtensions

Methods

AddAssembly(IServiceCollection, Assembly)

Declaration
public static IServiceCollection AddAssembly(this IServiceCollection services, Assembly assembly)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Reflection.Assembly assembly
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

AddAssemblyOf<T>(IServiceCollection)

Declaration
public static IServiceCollection AddAssemblyOf<T>(this IServiceCollection services)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection
Type Parameters
Name Description
T

AddConventionalRegistrar(IServiceCollection, IConventionalRegistrar)

Declaration
public static IServiceCollection AddConventionalRegistrar(this IServiceCollection services, IConventionalRegistrar registrar)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
IConventionalRegistrar registrar
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

AddType(IServiceCollection, Type)

Declaration
public static IServiceCollection AddType(this IServiceCollection services, Type type)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
System.Type type
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection

AddType<TType>(IServiceCollection)

Declaration
public static IServiceCollection AddType<TType>(this IServiceCollection services)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollection
Type Parameters
Name Description
TType

AddTypes(IServiceCollection, params Type[])

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

GetConventionalRegistrars(IServiceCollection)

Declaration
public static List<IConventionalRegistrar> GetConventionalRegistrars(this IServiceCollection services)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services
Returns
Type Description
System.Collections.Generic.List<T><IConventionalRegistrar>
In This Article
Back to top Powered by Volosoft