ServiceProviderExtensionsGetAutofacRoot Method |
Namespace: Autofac.Extensions.DependencyInjection
| Exception | Condition |
|---|---|
| InvalidOperationException | Throws an InvalidOperationException when instance of IServiceProvider can't be assigned to AutofacServiceProvider. |