Class AdapterReadRequest

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

Requests a bounded file range and, when supplied, pins it to the expected revision.

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

Constructors

AdapterReadRequest(string, string, long, long, string?)

Requests a bounded file range and, when supplied, pins it to the expected revision.

public AdapterReadRequest(string RootKey, string Path, long Offset, long Length, string? ExpectedRevision = null)

Parameters

RootKey string
Path string
Offset long
Length long
ExpectedRevision string

Properties

ExpectedRevision

public string? ExpectedRevision { get; init; }

Property Value

string

Length

public long Length { get; init; }

Property Value

long

Offset

public long Offset { get; init; }

Property Value

long

Path

public string Path { get; init; }

Property Value

string

RootKey

public string RootKey { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out long, out long, out string?)

public void Deconstruct(out string RootKey, out string Path, out long Offset, out long Length, out string? ExpectedRevision)

Parameters

RootKey string
Path string
Offset long
Length long
ExpectedRevision string

Equals(AdapterReadRequest?)

public bool Equals(AdapterReadRequest? other)

Parameters

other AdapterReadRequest

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

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

Parameters

left AdapterReadRequest
right AdapterReadRequest

Returns

bool

operator !=(AdapterReadRequest?, AdapterReadRequest?)

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

Parameters

left AdapterReadRequest
right AdapterReadRequest

Returns

bool