Struct LiveControlCommand
One decoded Workbench→engine control frame.
public readonly struct LiveControlCommand : IEquatable<LiveControlCommand>
- Implements
- Inherited Members
Constructors
LiveControlCommand(LiveFrameType, uint, uint, double, ushort, LiveControlToken)
One decoded Workbench→engine control frame.
public LiveControlCommand(LiveFrameType Type, uint Seq, uint Steps, double Scale, ushort Version, LiveControlToken Mac)
Parameters
TypeLiveFrameTypeOne of ControlHello … LeasePing.
SequintThe command's sequence number (Pause, Resume, Step, SetScale); 0 otherwise.
StepsuintThe step count (Step only).
ScaledoubleThe requested scale (SetScale only); PositiveInfinity is unpaced.
VersionushortThe protocol version (ControlHello only).
MacLiveControlTokenHMAC-SHA256(token, the connection's nonce) (ControlHello only): the proof the peer holds the token, never the token itself.
Properties
Mac
HMAC-SHA256(token, the connection's nonce) (ControlHello only): the proof the peer holds the token, never the token itself.
public LiveControlToken Mac { get; init; }
Property Value
Scale
The requested scale (SetScale only); PositiveInfinity is unpaced.
public double Scale { get; init; }
Property Value
Seq
The command's sequence number (Pause, Resume, Step, SetScale); 0 otherwise.
public uint Seq { get; init; }
Property Value
Steps
The step count (Step only).
public uint Steps { get; init; }
Property Value
Type
One of ControlHello … LeasePing.
public LiveFrameType Type { get; init; }
Property Value
Version
The protocol version (ControlHello only).
public ushort Version { get; init; }
Property Value
Methods
Deconstruct(out LiveFrameType, out uint, out uint, out double, out ushort, out LiveControlToken)
public void Deconstruct(out LiveFrameType Type, out uint Seq, out uint Steps, out double Scale, out ushort Version, out LiveControlToken Mac)
Parameters
TypeLiveFrameTypeSequintStepsuintScaledoubleVersionushortMacLiveControlToken
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(LiveControlCommand)
public bool Equals(LiveControlCommand other)
Parameters
otherLiveControlCommand
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(LiveControlCommand, LiveControlCommand)
public static bool operator ==(LiveControlCommand left, LiveControlCommand right)
Parameters
leftLiveControlCommandrightLiveControlCommand
Returns
operator !=(LiveControlCommand, LiveControlCommand)
public static bool operator !=(LiveControlCommand left, LiveControlCommand right)
Parameters
leftLiveControlCommandrightLiveControlCommand