Enum
public enum ProcedureResult

Namespace: SharpMeter.Core.Enums

Result codes for PSEM procedure execution (read from ST8).

Fields

NameDescription
Accepted static Procedure accepted for asynchronous execution.
Completed static Procedure completed successfully.
Conflict static Conflicting state prevents execution.
InvalidParameter static Invalid procedure or parameters.
TimedOut static Procedure timed out.
Unauthorized static Unauthorized — insufficient security clearance.
Unknown static Unknown response code.

Accepted

Accepted = 1

Procedure accepted for asynchronous execution.

Completed

Completed = 0

Procedure completed successfully.

Conflict

Conflict = 3

Conflicting state prevents execution.

InvalidParameter

InvalidParameter = 2

Invalid procedure or parameters.

TimedOut

TimedOut = 4

Procedure timed out.

Unauthorized

Unauthorized = 5

Unauthorized — insufficient security clearance.

Unknown

Unknown = 6

Unknown response code.

View Source
/// <summary>
///     Result codes for PSEM procedure execution (read from ST8).
/// </summary>
[SuppressMessage("Design", "CA1028:Enum storage should be Int32", Justification = "Wire protocol requires byte for binary serialization.")]
public enum ProcedureResult : byte
{
    /// <summary>Procedure completed successfully.</summary>
    Completed = 0x00,
    /// <summary>Procedure accepted for asynchronous execution.</summary>
    Accepted = 0x01,
    /// <summary>Invalid procedure or parameters.</summary>
    InvalidParameter = 0x02,
    /// <summary>Conflicting state prevents execution.</summary>
    Conflict = 0x03,
    /// <summary>Procedure timed out.</summary>
    TimedOut = 0x04,
    /// <summary>Unauthorized — insufficient security clearance.</summary>
    Unauthorized = 0x05,
    /// <summary>Unknown response code.</summary>
    Unknown = 0x06
}
Was this page helpful?