Class ServiceCollectionExtensions
Extension methods on
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 |
Returns
| Type | Description |
|---|---|
| IServiceCollection | The service collection. |