HostingModule
PackageAxial.Hosting
Microsoft Generic Host registration helpers for root Flow applications.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| addApp | Hosting.addApp environmentFactory describeError application services | Registers a root application that owns the Generic Host lifetime. |
| addAppWith | Hosting.addAppWith options environmentFactory describeError application services | Registers a root application with explicit Generic Host completion options. |
Registers a root application that owns the Generic Host lifetime.
Parameters
| Name | Type | Description |
|---|---|---|
| environmentFactory | IServiceProvider -> 'env | |
| describeError | 'error -> string | |
| application | Flow<'env, 'error, unit> | |
| services | IServiceCollection |
Returns
IServiceCollection
Registers a root application with explicit Generic Host completion options.
Parameters
| Name | Type | Description |
|---|---|---|
| options | HostedAppOptions | |
| environmentFactory | IServiceProvider -> 'env | |
| describeError | 'error -> string | |
| application | Flow<'env, 'error, unit> | |
| services | IServiceCollection |
Returns
IServiceCollection

