HostOptions Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options for IHost.
public ref class HostOptions
public class HostOptions
type HostOptions = class
Public Class HostOptions
- Inheritance
-
HostOptions
Host |
Initializes a new instance of the HostOptions class. |
Background |
Gets or sets the behavior the IHost will follow when any of its BackgroundService instances throw an unhandled exception. |
Services |
Gets or sets a value that indicates if the IHost will start registered instances of IHostedService concurrently or sequentially. |
Services |
Gets or sets a value that indicates if the IHost will stop registered instances of IHostedService concurrently or sequentially. |
Shutdown |
Gets or sets the default timeout for StopAsync(CancellationToken). |
Startup |
Gets or sets the default timeout for StartAsync(CancellationToken). |
Produkt | Versiounen |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Feedback zu .NET
.NET ass en Open-Source-Projet. Wielt e Link, fir Feedback ze ginn: