Table of Contents

Class SubscriptionMember

Namespace
Excalibur.EventSourcing.Subscriptions
Assembly
Excalibur.EventSourcing.dll

One projection bound to a subscription: its stable key, the fingerprint of its processing definition, and the destination that fingerprint was computed over.

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

Constructors

SubscriptionMember(string, string, string)

One projection bound to a subscription: its stable key, the fingerprint of its processing definition, and the destination that fingerprint was computed over.

public SubscriptionMember(string ProjectionKey, string DefinitionHash, string Destination)

Parameters

ProjectionKey string

The projection's stable identity within the subscription. It is one half of the key its member row and its checkpoint are both stored under; the subscription name is the other half.

DefinitionHash string

An uppercase 64-character hexadecimal SHA-256 fingerprint over this projection's processing definition: the subscription's source/destination scope, its consumer semantic revision, and this projection's assembly, type identity and destination. The hash and destination must both match an existing binding.

Destination string

The resolved destination identity (index, table or container) the fingerprint was computed over. Compared when joining a binding and used as the authoritative destination for generation cutover.

Properties

BindingId

Gets the store-assigned identity of this binding's lifetime.

public Guid BindingId { get; init; }

Property Value

Guid

Empty on a binding request; a nonempty identifier on a stored member.

DefinitionHash

An uppercase 64-character hexadecimal SHA-256 fingerprint over this projection's processing definition: the subscription's source/destination scope, its consumer semantic revision, and this projection's assembly, type identity and destination. The hash and destination must both match an existing binding.

public string DefinitionHash { get; init; }

Property Value

string

Destination

The resolved destination identity (index, table or container) the fingerprint was computed over. Compared when joining a binding and used as the authoritative destination for generation cutover.

public string Destination { get; init; }

Property Value

string

DestinationScope

Gets the physical storage scope captured for this binding's lifetime.

public string? DestinationScope { get; init; }

Property Value

string

The provider's verified service/database identity, or null when unavailable.

Position

Gets the checkpoint read atomically with this member.

public long? Position { get; init; }

Property Value

long?

Null until this binding has acknowledged a position.

ProjectionKey

The projection's stable identity within the subscription. It is one half of the key its member row and its checkpoint are both stored under; the subscription name is the other half.

public string ProjectionKey { get; init; }

Property Value

string