Table of Contents

Struct LiveControlCommand

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

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

Type LiveFrameType

One of ControlHello … LeasePing.

Seq uint

The command's sequence number (Pause, Resume, Step, SetScale); 0 otherwise.

Steps uint

The step count (Step only).

Scale double

The requested scale (SetScale only); PositiveInfinity is unpaced.

Version ushort

The protocol version (ControlHello only).

Mac LiveControlToken

HMAC-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

LiveControlToken

Scale

The requested scale (SetScale only); PositiveInfinity is unpaced.

public double Scale { get; init; }

Property Value

double

Seq

The command's sequence number (Pause, Resume, Step, SetScale); 0 otherwise.

public uint Seq { get; init; }

Property Value

uint

Steps

The step count (Step only).

public uint Steps { get; init; }

Property Value

uint

Type

One of ControlHello … LeasePing.

public LiveFrameType Type { get; init; }

Property Value

LiveFrameType

Version

The protocol version (ControlHello only).

public ushort Version { get; init; }

Property Value

ushort

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

Type LiveFrameType
Seq uint
Steps uint
Scale double
Version ushort
Mac LiveControlToken

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(LiveControlCommand)

public bool Equals(LiveControlCommand other)

Parameters

other LiveControlCommand

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(LiveControlCommand, LiveControlCommand)

public static bool operator ==(LiveControlCommand left, LiveControlCommand right)

Parameters

left LiveControlCommand
right LiveControlCommand

Returns

bool

operator !=(LiveControlCommand, LiveControlCommand)

public static bool operator !=(LiveControlCommand left, LiveControlCommand right)

Parameters

left LiveControlCommand
right LiveControlCommand

Returns

bool