Skip to content
Start free evaluation

PDComm.Secs1State

Class

A snapshot of a SECS-I endpoint's lifecycle flags.

public sealed record Secs1State

Each flag is 1 when set and 0 otherwise.

Parameters

NameDescription
EndpointIdThe process-local identity of the endpoint.
GenerationThe endpoint generation; every restart after a stop starts a new generation.
StartedWhether the endpoint has been started and not stopped since.
StoppedWhether the endpoint has been stopped; a stop discards the runtime state.
FaultedWhether the line has faulted; the endpoint stops polling until Secs1Worker.ResetAsync clears the fault.
PoisonedWhether an internal failure poisoned the endpoint; it then only accepts destruction.

Members

Secs1State

Constructor

A snapshot of a SECS-I endpoint's lifecycle flags.

public Secs1State(ulong EndpointId, ulong Generation, byte Started, byte Stopped, byte Faulted, byte Poisoned)

Each flag is 1 when set and 0 otherwise.

Parameters

NameDescription
EndpointIdThe process-local identity of the endpoint.
GenerationThe endpoint generation; every restart after a stop starts a new generation.
StartedWhether the endpoint has been started and not stopped since.
StoppedWhether the endpoint has been stopped; a stop discards the runtime state.
FaultedWhether the line has faulted; the endpoint stops polling until Secs1Worker.ResetAsync clears the fault.
PoisonedWhether an internal failure poisoned the endpoint; it then only accepts destruction.

EndpointId

Property

The process-local identity of the endpoint.

public ulong EndpointId { get; init; }

Faulted

Property

Whether the line has faulted; the endpoint stops polling until Secs1Worker.ResetAsync clears the fault.

public byte Faulted { get; init; }

Generation

Property

The endpoint generation; every restart after a stop starts a new generation.

public ulong Generation { get; init; }

Poisoned

Property

Whether an internal failure poisoned the endpoint; it then only accepts destruction.

public byte Poisoned { get; init; }

Started

Property

Whether the endpoint has been started and not stopped since.

public byte Started { get; init; }

Stopped

Property

Whether the endpoint has been stopped; a stop discards the runtime state.

public byte Stopped { get; init; }