MicrosoftDependencyResolver() constructor¶
Defined in
Type: MicrosoftDependencyResolver
Namespace: Splat.Microsoft.Extensions.DependencyInjection
Assembly: Splat.Microsoft.Extensions.DependencyInjection.dll
Applies to
net10.0, net9.0, net9.0, net8.0, net8.0, netstandard2.0, netstandard2.0, net481, net462
Overloads¶
-
public MicrosoftDependencyResolver() -
public MicrosoftDependencyResolver(IServiceCollection? services) -
public MicrosoftDependencyResolver(IServiceProvider serviceProvider)
1. Overload¶
public MicrosoftDependencyResolver()
Summary: Initializes a new instance of the MicrosoftDependencyResolver class with a new IServiceCollection.
2. Overload¶
public MicrosoftDependencyResolver(IServiceCollection? services)
Summary: Initializes a new instance of the MicrosoftDependencyResolver class with an IServiceCollection.
Parameters
| Name | Type | Description |
|---|---|---|
services | IServiceCollection? | An instance of IServiceCollection. |
3. Overload¶
public MicrosoftDependencyResolver(IServiceProvider serviceProvider)
Summary: Initializes a new instance of the MicrosoftDependencyResolver class with a configured service Provider.
Parameters
| Name | Type | Description |
|---|---|---|
serviceProvider | IServiceProvider | A ready to use service provider. |