Method BuildServiceProvider
BuildServiceProvider(IServiceCollection)
Builds a IServiceProvider from the IServiceCollection.
Declaration
public static IServiceProvider BuildServiceProvider(this IServiceCollection serviceCollection)
Parameters
| Type | Name | Description | 
|---|---|---|
| IServiceCollection | serviceCollection | The IServiceCollection to build the IServiceProvider from.  | 
    
Returns
| Type | Description | 
|---|---|
| IServiceProvider | The IServiceProvider.  | 
    
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Thrown when   |