Struct MailboxID
Represents a read-only tuple of { Channel: string, gShard: GDID, gMailbox: GDID}.
The gMailbox is a globally-unique ID however some large systems need to prepend it with
gShard which allows for instant location of a concrete data store which holds gMailbox.
This design allows to use the same infrastructure for product reviews, in which case, the MailboxID
may represent a particular product (out of millions) that receives customer review messages
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Sky.dll
Syntax
[Serializable]
public struct MailboxID : IEquatable<MailboxID>
Constructors
MailboxID(String, GDID, GDID)
Declaration
public MailboxID(string channel, GDID gShard, GDID gMbox)
Parameters
Type |
Name |
Description |
System.String |
channel |
|
GDID |
gShard |
|
GDID |
gMbox |
|
Fields
Channel
System-dependent Channel ID where the mailbox is stored, for example: USER, COMPANY, VENDOR etc...
Declaration
public readonly string Channel
Field Value
Type |
Description |
System.String |
|
G_Mailbox
The global unique id of a mailbox, e.g. user GDID, company GDID, product "mailbox" = G_PRODUCT
Declaration
public readonly GDID G_Mailbox
Field Value
G_Shard
Sharding GDID used to instantly find the data store shard where data is kept
Declaration
public readonly GDID G_Shard
Field Value
Methods
Equals(MailboxID)
Declaration
public bool Equals(MailboxID other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
Equality(MailboxID, MailboxID)
Declaration
public static bool operator ==(MailboxID left, MailboxID right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(MailboxID, MailboxID)
Declaration
public static bool operator !=(MailboxID left, MailboxID right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>
Extension Methods