Class Identity
[MessagePackObject(false)]
public sealed class Identity
- Inheritance
-
Identity
- Inherited Members
Constructors
Identity(string, Realm)
[SerializationConstructor]
public Identity(string username, Realm realm)
Parameters
Fields
Realm
The source of the identity.
[Key(1)]
public readonly Realm Realm
Field Value
Username
This is a unique identifier, but not necessarily the same as the username used to login.
[Key(0)]
public readonly string Username
Field Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.