Struct ClusterMemberId
Represents unique identifier of cluster member.
Inherited Members
Namespace: DotNext.Net.Cluster
Assembly: DotNext.Net.Cluster.dll
Syntax
[Serializable]
public struct ClusterMemberId : IEquatable<ClusterMemberId>, ISerializable
Constructors
| Improve this Doc View SourceClusterMemberId(ReadOnlySpan<Byte>)
Initializes a new unique identifier from set of bytes.
Declaration
public ClusterMemberId(ReadOnlySpan<byte> bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<Byte> | bytes | The memory block of bytes. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |
|
Methods
| Improve this Doc View SourceEquals(ClusterMemberId)
Determines whether the current identifier is equal to another identifier.
Declaration
public bool Equals(ClusterMemberId other)
Parameters
| Type | Name | Description |
|---|---|---|
| ClusterMemberId | other | The identifier to compare. |
Returns
| Type | Description |
|---|---|
| Boolean | true if this identifier is equal to |
Equals(Object)
Determines whether the current identifier is equal to another identifier.
Declaration
public override bool Equals(object other)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | other | The identifier to compare. |
Returns
| Type | Description |
|---|---|
| Boolean | true if this identifier is equal to |
Overrides
| Improve this Doc View SourceGetHashCode()
Gets the hash code of this identifier.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | The hash code of this identifier. |
Overrides
| Improve this Doc View SourceToString()
Returns hexadecimal representation of this identifier.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | The hexadecimal representation of this identifier. |
Overrides
| Improve this Doc View SourceTryParse(ReadOnlySpan<Char>, out ClusterMemberId)
Attempts to parse cluster member identifier.
Declaration
public static bool TryParse(ReadOnlySpan<char> identifier, out ClusterMemberId value)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<Char> | identifier | The hexadecimal representation of identifier. |
| ClusterMemberId | value | The parsed identifier. |
Returns
| Type | Description |
|---|---|
| Boolean | true if identifier parsed successfully; otherwise, false. |
Operators
| Improve this Doc View SourceEquality(ClusterMemberId, ClusterMemberId)
Determines whether the two identifiers are equal.
Declaration
public static bool operator ==(in ClusterMemberId x, in ClusterMemberId y)
Parameters
| Type | Name | Description |
|---|---|---|
| ClusterMemberId | x | The first identifier to compare. |
| ClusterMemberId | y | The second identifier to compare. |
Returns
| Type | Description |
|---|---|
| Boolean | true if both identifiers are equal; otherwise, false. |
Inequality(ClusterMemberId, ClusterMemberId)
Determines whether the two identifiers are not equal.
Declaration
public static bool operator !=(in ClusterMemberId x, in ClusterMemberId y)
Parameters
| Type | Name | Description |
|---|---|---|
| ClusterMemberId | x | The first identifier to compare. |
| ClusterMemberId | y | The second identifier to compare. |
Returns
| Type | Description |
|---|---|
| Boolean | true if both identifiers are not equal; otherwise, false. |
Explicit Interface Implementations
| Improve this Doc View SourceISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | |
| StreamingContext | context |