Class EventSourceName

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

Represents the name of a registered event source definition an event was appended through.

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

Constructors

EventSourceName(EventSourceName)

protected EventSourceName(EventSourceName original)

Parameters

original EventSourceName

EventSourceName(string)

Represents the name of a registered event source definition an event was appended through.

public EventSourceName(string Value)

Parameters

Value string

Actual value.

Fields

NotSet

Gets the representation of an event that was not appended through a registered event source.

public static readonly EventSourceName NotSet

Field Value

EventSourceName

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

IsSet

Gets a value indicating whether the name is set.

public bool IsSet { get; }

Property Value

bool

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(EventSourceName?)

public virtual bool Equals(EventSourceName? other)

Parameters

other EventSourceName

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

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

Parameters

left EventSourceName
right EventSourceName

Returns

bool

implicit operator EventSourceName(string)

Convert from a string to an EventSourceName.

public static implicit operator EventSourceName(string value)

Parameters

value string

String to convert from.

Returns

EventSourceName

operator !=(EventSourceName?, EventSourceName?)

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

Parameters

left EventSourceName
right EventSourceName

Returns

bool