Skip to content
ConsoleMonster
Enum

ServiceState

ConsoleMonster.Hosting

Namespace
ConsoleMonster.Hosting
Assembly
ConsoleMonster.Hosting
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

The state of a hosted service or of an entry the application reports.

Inheritance

  • Enum
  • ServiceState

Usage

Explore 9 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Values

public const ServiceState Waiting #

Not started yet.

Value: 0
public const ServiceState Starting #

Starting (its StartAsync runs).

Value: 1
public const ServiceState Running #

Started and running.

Value: 2
public const ServiceState Stopping #

Stopping (its StopAsync runs).

Value: 3
public const ServiceState Stopped #

Stopped by the host.

Value: 4
public const ServiceState Completed #

Its work finished on its own (a BackgroundService whose ExecuteAsync returned).

Value: 5
public const ServiceState Failed #

Failed (an exception from StartAsync or ExecuteAsync).

Value: 6