PgBackgroundWorkerState
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Holds an owned snapshot of a dynamic worker’s state and its PID when running.
public readonly struct PgBackgroundWorkerState : IEquatable<PgBackgroundWorkerState>Implements: IEquatable<PgBackgroundWorkerState>
Constructors
Section titled “Constructors”PgBackgroundWorkerState(PgBackgroundWorkerStatus, int?)
Section titled “PgBackgroundWorkerState(PgBackgroundWorkerStatus, int?)”Holds an owned snapshot of a dynamic worker’s state and its PID when running.
public PgBackgroundWorkerState(PgBackgroundWorkerStatus Status, int? ProcessId)Parameters:
Status — PgBackgroundWorkerStatus
The observed state.
ProcessId — int?
The running process identifier, or null when no running process was observed.
Methods
Section titled “Methods”Deconstruct(out PgBackgroundWorkerStatus, out int?)
Section titled “Deconstruct(out PgBackgroundWorkerStatus, out int?)”public void Deconstruct(out PgBackgroundWorkerStatus Status, out int? ProcessId)Parameters:
Status — PgBackgroundWorkerStatus
ProcessId — int?
Equals(PgBackgroundWorkerState)
Section titled “Equals(PgBackgroundWorkerState)”public bool Equals(PgBackgroundWorkerState other)Parameters:
other — PgBackgroundWorkerState
Returns: bool
Equals(object)
Section titled “Equals(object)”public override bool Equals(object obj)Parameters:
obj — object
Returns: bool
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Returns: int
ToString()
Section titled “ToString()”public override string ToString()Returns: string
Properties
Section titled “Properties”ProcessId
Section titled “ProcessId”The running process identifier, or null when no running process was observed.
public int? ProcessId { get; init; }Value: int?
Status
Section titled “Status”The observed state.
public PgBackgroundWorkerStatus Status { get; init; }Value: PgBackgroundWorkerStatus
Operators
Section titled “Operators”operator ==(PgBackgroundWorkerState, PgBackgroundWorkerState)
Section titled “operator ==(PgBackgroundWorkerState, PgBackgroundWorkerState)”public static bool operator ==(PgBackgroundWorkerState left, PgBackgroundWorkerState right)Parameters:
left — PgBackgroundWorkerState
right — PgBackgroundWorkerState
Returns: bool
operator !=(PgBackgroundWorkerState, PgBackgroundWorkerState)
Section titled “operator !=(PgBackgroundWorkerState, PgBackgroundWorkerState)”public static bool operator !=(PgBackgroundWorkerState left, PgBackgroundWorkerState right)Parameters:
left — PgBackgroundWorkerState
right — PgBackgroundWorkerState
Returns: bool