Table of Contents

Class EventSourceId

Namespace
Cratis.Chronicle.Events
Assembly
Cratis.Chronicle.dll

Represents the unique identifier of an instance of an event source.

public record EventSourceId : ConceptAs<string>, IComparable<ConceptAs<string>>, IComparable<string>, IComparable, IEquatable<ConceptAs<string>>, IEquatable<EventSourceId>
Inheritance
EventSourceId
Implements
Inherited Members

Constructors

EventSourceId(string)

Represents the unique identifier of an instance of an event source.

public EventSourceId(string Value)

Parameters

Value string

Actual value.

Fields

Unspecified

Gets the representation of an unspecified EventSourceId.

public static readonly EventSourceId Unspecified

Field Value

EventSourceId

Properties

IsSpecified

Check whether or not the EventSourceId is specified.

public bool IsSpecified { get; }

Property Value

bool

Methods

New()

Create a new EventSourceId.

public static EventSourceId New()

Returns

EventSourceId

A new EventSourceId.

Operators

implicit operator EventSourceId(Guid)

Implicitly convert from Guid to EventSourceId.

public static implicit operator EventSourceId(Guid id)

Parameters

id Guid

Guid to convert from.

Returns

EventSourceId

A converted EventSourceId.

implicit operator EventSourceId(string)

Implicitly convert from string to EventSourceId.

public static implicit operator EventSourceId(string id)

Parameters

id string

string to convert from.

Returns

EventSourceId

A converted EventSourceId.