Struct Identifier
Represents a client type, direction, and message name.
public readonly record struct Identifier : IEquatable<Identifier>
- Implements
- Inherited Members
Remarks
Used to associate a message name with a Header that is resolved at runtime.
Constructors
Identifier()
public Identifier()
Identifier(ClientType, Direction, string)
Represents a client type, direction, and message name.
public Identifier(ClientType Client, Direction Direction, string Name)
Parameters
Client
ClientTypeDirection
DirectionName
string
Remarks
Used to associate a message name with a Header that is resolved at runtime.
Fields
Unknown
public static readonly Identifier Unknown
Field Value
Properties
Client
public ClientType Client { get; init; }
Property Value
Direction
public Direction Direction { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Methods
Equals(Identifier)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Identifier other)
Parameters
other
IdentifierAn object to compare with this object.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
ToString(bool)
public string ToString(bool includeDirection)
Parameters
includeDirection
bool
Returns
Operators
implicit operator Identifier((ClientType client, Direction direction, string name))
public static implicit operator Identifier((ClientType client, Direction direction, string name) x)
Parameters
Returns
implicit operator Identifier((Direction direction, string name))
public static implicit operator Identifier((Direction direction, string name) x)
Parameters
Returns
implicit operator ReadOnlySpan<Identifier>(in Identifier)
public static implicit operator ReadOnlySpan<Identifier>(in Identifier identifier)
Parameters
identifier
Identifier