Class AdapterControlFrame

Namespace
MirrorPulse.Adapter.Sdk
Assembly
MirrorPulse.Adapter.Sdk.dll

The control envelope shared by the bootstrap and negotiated Worker protocols.

public sealed record AdapterControlFrame : IEquatable<AdapterControlFrame>
Inheritance
AdapterControlFrame
Implements
Inherited Members

Constructors

AdapterControlFrame(int, string, Guid, Guid, Guid, bool, JsonElement)

The control envelope shared by the bootstrap and negotiated Worker protocols.

public AdapterControlFrame(int ProtocolVersion, string MessageType, Guid RequestId, Guid InstanceId, Guid WorkerSessionId, bool IsResponse, JsonElement Payload)

Parameters

ProtocolVersion int
MessageType string
RequestId Guid
InstanceId Guid
WorkerSessionId Guid
IsResponse bool
Payload JsonElement

Properties

InstanceId

public Guid InstanceId { get; init; }

Property Value

Guid

IsResponse

public bool IsResponse { get; init; }

Property Value

bool

MessageType

public string MessageType { get; init; }

Property Value

string

Payload

public JsonElement Payload { get; init; }

Property Value

JsonElement

ProtocolVersion

public int ProtocolVersion { get; init; }

Property Value

int

RequestId

public Guid RequestId { get; init; }

Property Value

Guid

WorkerSessionId

public Guid WorkerSessionId { get; init; }

Property Value

Guid

Methods

Deconstruct(out int, out string, out Guid, out Guid, out Guid, out bool, out JsonElement)

public void Deconstruct(out int ProtocolVersion, out string MessageType, out Guid RequestId, out Guid InstanceId, out Guid WorkerSessionId, out bool IsResponse, out JsonElement Payload)

Parameters

ProtocolVersion int
MessageType string
RequestId Guid
InstanceId Guid
WorkerSessionId Guid
IsResponse bool
Payload JsonElement

Equals(AdapterControlFrame?)

public bool Equals(AdapterControlFrame? other)

Parameters

other AdapterControlFrame

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AdapterControlFrame?, AdapterControlFrame?)

public static bool operator ==(AdapterControlFrame? left, AdapterControlFrame? right)

Parameters

left AdapterControlFrame
right AdapterControlFrame

Returns

bool

operator !=(AdapterControlFrame?, AdapterControlFrame?)

public static bool operator !=(AdapterControlFrame? left, AdapterControlFrame? right)

Parameters

left AdapterControlFrame
right AdapterControlFrame

Returns

bool