共用方式為


HostOptions Class

Definition

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 if the IHost will start registered instances of IHostedService concurrently or sequentially.

ServicesStopConcurrently

Gets or sets a value that indicates if the IHost will stop 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