Megosztás a következőn keresztül:


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

The behavior the IHost will follow when any of its BackgroundService instances throw an unhandled exception.

ServicesStartConcurrently

Determines if the IHost will start registered instances of IHostedService concurrently or sequentially. Defaults to false.

ServicesStopConcurrently

Determines if the IHost will stop registered instances of IHostedService concurrently or sequentially. Defaults to false.

ShutdownTimeout

The default timeout for StopAsync(CancellationToken).

StartupTimeout

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