public sealed record ServiceStatus : IEquatable<ServiceStatus> Service state observed at a moment in time.
Parameters
StateThe current state.
ProcessIdThe hosting process ID, or 0 when the service is not running.
AcceptedControlsThe controls the service accepts; unnamed native bits are passed through.
Win32ExitCodeThe native Win32 exit code.
ServiceSpecificExitCodeThe service-specific exit code.
CheckPointThe native progress check point.
WaitHintThe service's estimate for its pending operation.
Constructors
ServiceStatus
public ServiceStatus(ServiceState State, int ProcessId, ServiceAcceptedControls AcceptedControls, uint Win32ExitCode, uint ServiceSpecificExitCode, uint CheckPoint, TimeSpan WaitHint) Service state observed at a moment in time.
Parameters
StateThe current state.
ProcessIdThe hosting process ID, or 0 when the service is not running.
AcceptedControlsThe controls the service accepts; unnamed native bits are passed through.
Win32ExitCodeThe native Win32 exit code.
ServiceSpecificExitCodeThe service-specific exit code.
CheckPointThe native progress check point.
WaitHintThe service's estimate for its pending operation.
Properties
AcceptedControls
public ServiceAcceptedControls AcceptedControls { get; init; } The controls the service accepts; unnamed native bits are passed through.
CheckPoint
public uint CheckPoint { get; init; } The native progress check point.
ProcessId
public int ProcessId { get; init; } The hosting process ID, or 0 when the service is not running.
ServiceSpecificExitCode
public uint ServiceSpecificExitCode { get; init; } The service-specific exit code.
Win32ExitCode
public uint Win32ExitCode { get; init; } The native Win32 exit code.