Method Initialize
Initialize(IServiceProvider, IHost)
Initializes the current App instance.
Declaration
public void Initialize(IServiceProvider serviceProvider, IHost host)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | serviceProvider | The service provider to use. |
| IHost | host | The host to use. |
Implements
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown when a current App instance already exists. |
| ArgumentNullException | Thrown when one or more required arguments are null. |