AllocateNewGeneration
static
public static int AllocateNewGeneration() Allocate a new silo generation number.
Returns
A new silo generation number.
public static int AllocateNewGeneration()public int CompareTo(SiloAddress? other)otherSiloAddress?| Value | Meaning |
|---|---|
| Less than zero | This instance precedes other in the sort order. |
| Zero | This instance occurs in the same position in the sort order as other. |
| Greater than zero | This instance follows other in the sort order. |
public bool Equals(SiloAddress? other)otherSiloAddress?true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj)objobject?true if the specified object is equal to the current object; otherwise, false.public static SiloAddress FromParsableString(string addr)ToParsableString method. addrstringpublic static SiloAddress FromUtf8String(ReadOnlySpan<byte> addr)ToParsableString method. addrReadOnlySpan<byte>public int GetConsistentHashCode()public override int GetHashCode()public uint[] GetUniformHashCodes(int numHashes)numHashesintpublic bool IsPredecessorOf(SiloAddress other)true if the provided value represents the same logical server as this value and is a predecessor to this server, otherwise false. otherSiloAddresstrue if the provided value represents the same logical server as this value and is a predecessor to this server, otherwise false. public bool IsSuccessorOf(SiloAddress other)true if the provided value represents the same logical server as this value and is a successor to this server, otherwise false. otherSiloAddresstrue if the provided value represents the same logical server as this value and is a successor to this server, otherwise false. public static SiloAddress New(IPAddress address, int port, int generation)addressIPAddressportintgenerationintpublic static SiloAddress New(IPEndPoint ep, int gen)epIPEndPointgenintpublic static SiloAddress Parse(ReadOnlySpan<byte> utf8Text)SiloAddress from UTF-8 text in the standard form returned from SiloAddress. utf8TextReadOnlySpan<byte>SiloAddress info to be parsed.SiloAddress parsed from the input data.public static SiloAddress Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider = null)SiloAddress from UTF-8 text in the standard form returned from SiloAddress. utf8TextReadOnlySpan<byte>SiloAddress info to be parsed.providerIFormatProvider?SiloAddress parsed from the input data.public static SiloAddress Parse(string value)SiloAddress from a string in the standard form returned from SiloAddress. valuestringSiloAddress info to be parsed.SiloAddress parsed from the input data.public static SiloAddress Parse(string value, IFormatProvider? provider = null)SiloAddress from a string in the standard form returned from SiloAddress. valuestringSiloAddress info to be parsed.providerIFormatProvider?SiloAddress parsed from the input data.public string ToParsableString()FromParsableString method. public override string ToString()public string ToStringWithHashCode()public static bool TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, out SiloAddress? result)SiloAddress from UTF-8 text in the standard form returned from SiloAddress. utf8TextReadOnlySpan<byte>SiloAddress info to be parsed.providerIFormatProvider?resultSiloAddress?SiloAddress, or null if parsing failed.true if parsing succeeded; otherwise, false.public static bool TryParse(ReadOnlySpan<byte> utf8Text, out SiloAddress? result)SiloAddress from UTF-8 text in the standard form returned from SiloAddress. utf8TextReadOnlySpan<byte>SiloAddress info to be parsed.resultSiloAddress?SiloAddress, or null if parsing failed.true if parsing succeeded; otherwise, false.public static bool TryParse(string? value, IFormatProvider? provider, out SiloAddress? result)SiloAddress from a string in the standard form returned from SiloAddress. valuestring?SiloAddress info to be parsed.providerIFormatProvider?resultSiloAddress?SiloAddress, or null if parsing failed.true if parsing succeeded; otherwise, false.public static bool TryParse(string? value, out SiloAddress? result)SiloAddress from a string in the standard form returned from SiloAddress. valuestring?SiloAddress info to be parsed.resultSiloAddress?SiloAddress, or null if parsing failed.true if parsing succeeded; otherwise, false.