ServiceStatus record

Namespace Runic.Platform.Administration.Windows.Services in Runic.Platform.Administration.Windows 0.23.0

public sealed record ServiceStatus : IEquatable<ServiceStatus>

Inherits or implements IEquatable.

Service state observed at a moment in time.

Parameters

State

The current state.

ProcessId

The hosting process ID, or 0 when the service is not running.

AcceptedControls

The controls the service accepts; unnamed native bits are passed through.

Win32ExitCode

The native Win32 exit code.

ServiceSpecificExitCode

The service-specific exit code.

CheckPoint

The native progress check point.

WaitHint

The 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

State

The current state.

ProcessId

The hosting process ID, or 0 when the service is not running.

AcceptedControls

The controls the service accepts; unnamed native bits are passed through.

Win32ExitCode

The native Win32 exit code.

ServiceSpecificExitCode

The service-specific exit code.

CheckPoint

The native progress check point.

WaitHint

The 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.

State

public ServiceState State { get; init; }

The current state.

WaitHint

public TimeSpan WaitHint { get; init; }

The service's estimate for its pending operation.

Win32ExitCode

public uint Win32ExitCode { get; init; }

The native Win32 exit code.