Click or drag to resize

ServiceCollectionExtensions Class

Extension methods on IServiceCollection to register the IServiceProviderFactory.
Inheritance Hierarchy
SystemObject
  Autofac.Extensions.DependencyInjectionServiceCollectionExtensions

Namespace:  Autofac.Extensions.DependencyInjection
Assembly:  Autofac.Extensions.DependencyInjection (in Autofac.Extensions.DependencyInjection.dll) Version: 7.1.0+380b08798bf724f36e200e687129b44a0778ab92
Syntax
public static class ServiceCollectionExtensions

The ServiceCollectionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddAutofac
Adds the AutofacServiceProviderFactory to the service collection. ONLY FOR PRE-ASP.NET 3.0 HOSTING. THIS WON'T WORK FOR ASP.NET CORE 3.0+ OR GENERIC HOSTING.
Top
See Also