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
ChangeIdstringKindAdapterRemoteChangeKindRootKeystringRemoteIdstringRemoteRevisionstringItemKindAdapterRemoteItemKindRelativePathstringPreviousRemoteRevisionstringPreviousRootKeystringPreviousRelativePathstringLengthlong?MetadataAdapterRemoteMetadataCursorAfterReadOnlyMemory<byte>
Properties
ChangeId
public string ChangeId { get; init; }
Property Value
CursorAfter
public ReadOnlyMemory<byte> CursorAfter { get; init; }
Property Value
ItemKind
public AdapterRemoteItemKind ItemKind { get; init; }
Property Value
Kind
public AdapterRemoteChangeKind Kind { get; init; }
Property Value
Length
public long? Length { get; init; }
Property Value
- long?
Metadata
public AdapterRemoteMetadata? Metadata { get; init; }
Property Value
PreviousRelativePath
public string? PreviousRelativePath { get; init; }
Property Value
PreviousRemoteRevision
public string? PreviousRemoteRevision { get; init; }
Property Value
PreviousRootKey
public string? PreviousRootKey { get; init; }
Property Value
RelativePath
public string RelativePath { get; init; }
Property Value
RemoteId
public string RemoteId { get; init; }
Property Value
RemoteRevision
public string RemoteRevision { get; init; }
Property Value
RootKey
public string RootKey { get; init; }
Property Value
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
ChangeIdstringKindAdapterRemoteChangeKindRootKeystringRemoteIdstringRemoteRevisionstringItemKindAdapterRemoteItemKindRelativePathstringPreviousRemoteRevisionstringPreviousRootKeystringPreviousRelativePathstringLengthlong?MetadataAdapterRemoteMetadataCursorAfterReadOnlyMemory<byte>
Equals(AdapterRemoteChange?)
public bool Equals(AdapterRemoteChange? other)
Parameters
otherAdapterRemoteChange
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(AdapterRemoteChange?, AdapterRemoteChange?)
public static bool operator ==(AdapterRemoteChange? left, AdapterRemoteChange? right)
Parameters
leftAdapterRemoteChangerightAdapterRemoteChange
Returns
operator !=(AdapterRemoteChange?, AdapterRemoteChange?)
public static bool operator !=(AdapterRemoteChange? left, AdapterRemoteChange? right)
Parameters
leftAdapterRemoteChangerightAdapterRemoteChange