MicrosoftDependencyResolver.UpdateContainer(IServiceCollection) method¶
Defined in
Type: MicrosoftDependencyResolver
Namespace: Splat.Microsoft.Extensions.DependencyInjection
Assembly: Splat.Microsoft.Extensions.DependencyInjection.dll
Applies to
net11.0, net10.0, netstandard2.0, net47, net472, net471, net48, net481
Overloads¶
-
public void UpdateContainer(IServiceCollection services) -
public void UpdateContainer(IServiceProvider serviceProvider)
1. Overload¶
public void UpdateContainer(IServiceCollection services)
Summary: Updates this instance with a collection of configured services.
Parameters
| Name | Type | Description |
|---|---|---|
services | IServiceCollection | An instance of IServiceCollection. |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown when _isImmutable. |
2. Overload¶
public void UpdateContainer(IServiceProvider serviceProvider)
Summary: Updates this instance with a configured service Provider.
Parameters
| Name | Type | Description |
|---|---|---|
serviceProvider | IServiceProvider | A ready to use service provider. |