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
originalEventSourceName
EventSourceName(string)
Represents the name of a registered event source definition an event was appended through.
public EventSourceName(string Value)
Parameters
ValuestringActual 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
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
IsSet
Gets a value indicating whether the name is set.
public bool IsSet { get; }
Property Value
Methods
Deconstruct(out string)
public void Deconstruct(out string Value)
Parameters
Valuestring
Equals(EventSourceName?)
public virtual bool Equals(EventSourceName? other)
Parameters
otherEventSourceName
Returns
Equals(ConceptAs<string>?)
public override sealed bool Equals(ConceptAs<string>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
Operators
operator ==(EventSourceName?, EventSourceName?)
public static bool operator ==(EventSourceName? left, EventSourceName? right)
Parameters
leftEventSourceNamerightEventSourceName
Returns
implicit operator EventSourceName(string)
Convert from a string to an EventSourceName.
public static implicit operator EventSourceName(string value)
Parameters
valuestringString to convert from.
Returns
operator !=(EventSourceName?, EventSourceName?)
public static bool operator !=(EventSourceName? left, EventSourceName? right)
Parameters
leftEventSourceNamerightEventSourceName