Class AdapterWorkerProcessArguments

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

The Host-provided Worker process identity, pipe name and launch mode.

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

Constructors

AdapterWorkerProcessArguments(Guid, Guid, string)

The Host-provided Worker process identity, pipe name and launch mode.

public AdapterWorkerProcessArguments(Guid InstanceId, Guid WorkerSessionId, string PipeName)

Parameters

InstanceId Guid
WorkerSessionId Guid
PipeName string

Fields

ConfigurationOnlyOption

public const string ConfigurationOnlyOption = "--configuration-only"

Field Value

string

Properties

ConfigurationOnly

Indicates a temporary session that may handle authorization before a sync root is configured.

public bool ConfigurationOnly { get; init; }

Property Value

bool

InstanceId

public Guid InstanceId { get; init; }

Property Value

Guid

PipeName

public string PipeName { get; init; }

Property Value

string

WorkerSessionId

public Guid WorkerSessionId { get; init; }

Property Value

Guid

Methods

Deconstruct(out Guid, out Guid, out string)

public void Deconstruct(out Guid InstanceId, out Guid WorkerSessionId, out string PipeName)

Parameters

InstanceId Guid
WorkerSessionId Guid
PipeName string

Equals(AdapterWorkerProcessArguments?)

public bool Equals(AdapterWorkerProcessArguments? other)

Parameters

other AdapterWorkerProcessArguments

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Parse(IReadOnlyList<string>)

Parses the documented argument sequence supplied by the Host.

public static AdapterWorkerProcessArguments Parse(IReadOnlyList<string> args)

Parameters

args IReadOnlyList<string>

Returns

AdapterWorkerProcessArguments

Exceptions

ArgumentException

The order, identifiers, pipe name or optional launch mode is invalid.

ToString()

public override string ToString()

Returns

string

Operators

operator ==(AdapterWorkerProcessArguments?, AdapterWorkerProcessArguments?)

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

Parameters

left AdapterWorkerProcessArguments
right AdapterWorkerProcessArguments

Returns

bool

operator !=(AdapterWorkerProcessArguments?, AdapterWorkerProcessArguments?)

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

Parameters

left AdapterWorkerProcessArguments
right AdapterWorkerProcessArguments

Returns

bool