Class EventStoreSubscriptionId

Namespace
Cratis.Chronicle.EventStoreSubscriptions
Assembly
Cratis.Chronicle.dll

Represents the unique identifier of an event store subscription on the client.

public record EventStoreSubscriptionId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<EventStoreSubscriptionId>
Inheritance
EventStoreSubscriptionId
Implements
Inherited Members
Extension Methods

Constructors

EventStoreSubscriptionId(EventStoreSubscriptionId)

protected EventStoreSubscriptionId(EventStoreSubscriptionId original)

Parameters

original EventStoreSubscriptionId

EventStoreSubscriptionId(string)

Represents the unique identifier of an event store subscription on the client.

public EventStoreSubscriptionId(string Value)

Parameters

Value string

The actual value.

Fields

Unspecified

Gets the representation of an unspecified EventStoreSubscriptionId.

public static readonly EventStoreSubscriptionId Unspecified

Field Value

EventStoreSubscriptionId

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(EventStoreSubscriptionId?)

public virtual bool Equals(EventStoreSubscriptionId? other)

Parameters

other EventStoreSubscriptionId

Returns

bool

Equals(ConceptAs<string>?)

public override sealed bool Equals(ConceptAs<string>? other)

Parameters

other ConceptAs<string>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

Operators

operator ==(EventStoreSubscriptionId?, EventStoreSubscriptionId?)

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

Parameters

left EventStoreSubscriptionId
right EventStoreSubscriptionId

Returns

bool

implicit operator ObserverId(EventStoreSubscriptionId)

Implicitly convert from EventStoreSubscriptionId to ObserverId.

public static implicit operator ObserverId(EventStoreSubscriptionId id)

Parameters

id EventStoreSubscriptionId

EventStoreSubscriptionId to convert from.

Returns

ObserverId

implicit operator EventStoreSubscriptionId(ObserverId)

Implicitly convert from ObserverId to EventStoreSubscriptionId.

public static implicit operator EventStoreSubscriptionId(ObserverId id)

Parameters

id ObserverId

ObserverId to convert from.

Returns

EventStoreSubscriptionId

implicit operator EventStoreSubscriptionId(string)

Implicitly convert from a string to EventStoreSubscriptionId.

public static implicit operator EventStoreSubscriptionId(string id)

Parameters

id string

String to convert from.

Returns

EventStoreSubscriptionId

operator !=(EventStoreSubscriptionId?, EventStoreSubscriptionId?)

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

Parameters

left EventStoreSubscriptionId
right EventStoreSubscriptionId

Returns

bool