Class AdapterRemoteChange

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

One Adapter-owned change, with paths relative to its declared first-level root.

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

Constructors

AdapterRemoteChange(string, AdapterRemoteChangeKind, string, string, string, AdapterRemoteItemKind, string, string?, string?, string?, long?, AdapterRemoteMetadata?, ReadOnlyMemory<byte>)

One Adapter-owned change, with paths relative to its declared first-level root.

public AdapterRemoteChange(string ChangeId, AdapterRemoteChangeKind Kind, string RootKey, string RemoteId, string RemoteRevision, AdapterRemoteItemKind ItemKind, string RelativePath, string? PreviousRemoteRevision = null, string? PreviousRootKey = null, string? PreviousRelativePath = null, long? Length = null, AdapterRemoteMetadata? Metadata = null, ReadOnlyMemory<byte> CursorAfter = default)

Parameters

ChangeId string
Kind AdapterRemoteChangeKind
RootKey string
RemoteId string
RemoteRevision string
ItemKind AdapterRemoteItemKind
RelativePath string
PreviousRemoteRevision string
PreviousRootKey string
PreviousRelativePath string
Length long?
Metadata AdapterRemoteMetadata
CursorAfter ReadOnlyMemory<byte>

Properties

ChangeId

public string ChangeId { get; init; }

Property Value

string

CursorAfter

public ReadOnlyMemory<byte> CursorAfter { get; init; }

Property Value

ReadOnlyMemory<byte>

ItemKind

public AdapterRemoteItemKind ItemKind { get; init; }

Property Value

AdapterRemoteItemKind

Kind

public AdapterRemoteChangeKind Kind { get; init; }

Property Value

AdapterRemoteChangeKind

Length

public long? Length { get; init; }

Property Value

long?

Metadata

public AdapterRemoteMetadata? Metadata { get; init; }

Property Value

AdapterRemoteMetadata

PreviousRelativePath

public string? PreviousRelativePath { get; init; }

Property Value

string

PreviousRemoteRevision

public string? PreviousRemoteRevision { get; init; }

Property Value

string

PreviousRootKey

public string? PreviousRootKey { get; init; }

Property Value

string

RelativePath

public string RelativePath { get; init; }

Property Value

string

RemoteId

public string RemoteId { get; init; }

Property Value

string

RemoteRevision

public string RemoteRevision { get; init; }

Property Value

string

RootKey

public string RootKey { get; init; }

Property Value

string

Methods

Deconstruct(out string, out AdapterRemoteChangeKind, out string, out string, out string, out AdapterRemoteItemKind, out string, out string?, out string?, out string?, out long?, out AdapterRemoteMetadata?, out ReadOnlyMemory<byte>)

public void Deconstruct(out string ChangeId, out AdapterRemoteChangeKind Kind, out string RootKey, out string RemoteId, out string RemoteRevision, out AdapterRemoteItemKind ItemKind, out string RelativePath, out string? PreviousRemoteRevision, out string? PreviousRootKey, out string? PreviousRelativePath, out long? Length, out AdapterRemoteMetadata? Metadata, out ReadOnlyMemory<byte> CursorAfter)

Parameters

ChangeId string
Kind AdapterRemoteChangeKind
RootKey string
RemoteId string
RemoteRevision string
ItemKind AdapterRemoteItemKind
RelativePath string
PreviousRemoteRevision string
PreviousRootKey string
PreviousRelativePath string
Length long?
Metadata AdapterRemoteMetadata
CursorAfter ReadOnlyMemory<byte>

Equals(AdapterRemoteChange?)

public bool Equals(AdapterRemoteChange? other)

Parameters

other AdapterRemoteChange

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

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

Parameters

left AdapterRemoteChange
right AdapterRemoteChange

Returns

bool

operator !=(AdapterRemoteChange?, AdapterRemoteChange?)

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

Parameters

left AdapterRemoteChange
right AdapterRemoteChange

Returns

bool