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.

ShutdownTimeout

The default timeout for StopAsync(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