Class EventSourceType

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

Represents the identifier for an event source type.

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

Constructors

EventSourceType(EventSourceType)

protected EventSourceType(EventSourceType original)

Parameters

original EventSourceType

EventSourceType(string)

Represents the identifier for an event source type.

public EventSourceType(string Value)

Parameters

Value string

Actual value.

Fields

Default

Gets the default EventSourceType.

public static readonly EventSourceType Default

Field Value

EventSourceType

Unspecified

Gets the representation of an unspecified EventSourceType.

public static readonly EventSourceType Unspecified

Field Value

EventSourceType

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Deconstruct(out string)

public void Deconstruct(out string Value)

Parameters

Value string

Equals(EventSourceType?)

public virtual bool Equals(EventSourceType? other)

Parameters

other EventSourceType

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

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

Parameters

left EventSourceType
right EventSourceType

Returns

bool

implicit operator EventSourceType(string)

Convert from a string to an EventSourceType.

public static implicit operator EventSourceType(string value)

Parameters

value string

String to convert from.

Returns

EventSourceType

operator !=(EventSourceType?, EventSourceType?)

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

Parameters

left EventSourceType
right EventSourceType

Returns

bool