Show / Hide Table of Contents

Class ServiceCollectionExtensions

Extension methods on to register the .

Inheritance
System.Object
ServiceCollectionExtensions
Namespace: Autofac.Extensions.DependencyInjection
Assembly: Volo.Abp.Autofac.dll
Syntax
public static class ServiceCollectionExtensions : object

Methods

AddAutofac(IServiceCollection, Action<ContainerBuilder>)

Adds the AutofacServiceProviderFactory to the service collection.

Declaration
public static IServiceCollection AddAutofac(this IServiceCollection services, Action<ContainerBuilder> configurationAction = null)
Parameters
Type Name Description
IServiceCollection services

The service collection to add the factory to.

Action<ContainerBuilder> configurationAction

Action on a that adds component registrations to the container.

Returns
Type Description
IServiceCollection

The service collection.

Back to top Powered by Volosoft