ServiceResolver<TService> constructor
A generic version of IServiceProvider which resolves a service on demand.
public ServiceResolver(IServiceProvider serviceProvider)
| parameter | description |
|---|---|
| TService | The type of the service to resolve. |
| serviceProvider | The service provider. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Throws when the service provider is null. |
Remarks
Initializes a new instance.
See Also
- class ServiceResolver<TService>