HostOptions Class
Definition
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
Constructors
HostOptions() |
Initializes a new instance of the HostOptions class. |
Properties
BackgroundServiceExceptionBehavior |
Gets or sets the behavior the IHost will follow when any of its BackgroundService instances throw an unhandled exception. |
ServicesStartConcurrently |
Gets or sets a value that indicates whether the IHost starts registered instances of IHostedService concurrently or sequentially. |
ServicesStopConcurrently |
Gets or sets a value that indicates whether the IHost stops registered instances of IHostedService concurrently or sequentially. |
ShutdownTimeout |
Gets or sets the default timeout for StopAsync(CancellationToken). |
StartupTimeout |
Gets or sets the default timeout for StartAsync(CancellationToken). |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre