Class AdapterWorkerContext

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

Non-secret startup context supplied by MirrorPulse to an Adapter Worker.

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

Constructors

AdapterWorkerContext(Guid, Guid, string, IReadOnlyDictionary<string, string>, string, string)

public AdapterWorkerContext(Guid instanceId, Guid workerSessionId, string pipeName, IReadOnlyDictionary<string, string> configuration, string fileCacheDirectory, string transferCacheDirectory)

Parameters

instanceId Guid
workerSessionId Guid
pipeName string
configuration IReadOnlyDictionary<string, string>
fileCacheDirectory string
transferCacheDirectory string

Properties

Configuration

public IReadOnlyDictionary<string, string> Configuration { get; }

Property Value

IReadOnlyDictionary<string, string>

FileCacheDirectory

public string FileCacheDirectory { get; }

Property Value

string

InstanceId

public Guid InstanceId { get; }

Property Value

Guid

PipeName

public string PipeName { get; }

Property Value

string

TransferCacheDirectory

public string TransferCacheDirectory { get; }

Property Value

string

WorkerSessionId

public Guid WorkerSessionId { get; }

Property Value

Guid

Methods

Equals(AdapterWorkerContext?)

public bool Equals(AdapterWorkerContext? other)

Parameters

other AdapterWorkerContext

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 ==(AdapterWorkerContext?, AdapterWorkerContext?)

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

Parameters

left AdapterWorkerContext
right AdapterWorkerContext

Returns

bool

operator !=(AdapterWorkerContext?, AdapterWorkerContext?)

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

Parameters

left AdapterWorkerContext
right AdapterWorkerContext

Returns

bool