SiloAddress Class

Definition

Data class encapsulating the details of silo addresses.

[System.Serializable]
public class SiloAddress : IComparable, IComparable<Orleans.Runtime.SiloAddress>, IEquatable<Orleans.Runtime.SiloAddress>
[System.Serializable]
[Orleans.Immutable]
[Orleans.SuppressReferenceTracking]
[System.Text.Json.Serialization.JsonConverter(typeof(Orleans.Runtime.SiloAddressConverter))]
public sealed class SiloAddress : IComparable<Orleans.Runtime.SiloAddress>, IEquatable<Orleans.Runtime.SiloAddress>, ISpanFormattable
[<System.Serializable>]
type SiloAddress = class
    interface IEquatable<SiloAddress>
    interface IComparable<SiloAddress>
    interface IComparable
[<System.Serializable>]
[<Orleans.Immutable>]
[<Orleans.SuppressReferenceTracking>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Orleans.Runtime.SiloAddressConverter))>]
type SiloAddress = class
    interface IEquatable<SiloAddress>
    interface IComparable<SiloAddress>
    interface ISpanFormattable
    interface IFormattable
Public Class SiloAddress
Implements IComparable, IComparable(Of SiloAddress), IEquatable(Of SiloAddress)
Public NotInheritable Class SiloAddress
Implements IComparable(Of SiloAddress), IEquatable(Of SiloAddress), ISpanFormattable
Inheritance
SiloAddress
Attributes
Implements

Properties

Endpoint

Gets the endpoint.

Generation

Gets the generation.

IsClient

Gets a value indicating whether this instance represents a client (versus a server).

Zero

Gets the special constant value which indicate an empty SiloAddress.

Methods

AllocateNewGeneration()

Allocate a new silo generation number.

CompareTo(Object)
CompareTo(SiloAddress)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Equals(Object)

Object.Equals method override.

Equals(SiloAddress)

IEquatable.Equals method override.

FromParsableString(String)

Create a new SiloAddress object by parsing string in a standard form returned from ToParsableString method.

FromUtf8String(ReadOnlySpan<Byte>)

Create a new SiloAddress object by parsing string in a standard form returned from ToParsableString method.

GetConsistentHashCode()

Returns a consistent hash value for this silo address.

GetHashCode()

Object.GetHashCode method override.

GetUniformHashCodes(Int32)

Returns a collection of uniform hash codes variants for this instance.

IsPredecessorOf(SiloAddress)

Returns true if the provided value represents the same logical server as this value and is a predecessor to this server, otherwise false.

IsSuccessorOf(SiloAddress)

Returns true if the provided value represents the same logical server as this value and is a successor to this server, otherwise false.

New(IPAddress, Int32, Int32)

Factory for creating new SiloAddresses with specified IP endpoint address and silo generation number.

New(IPEndPoint, Int32)

Factory for creating new SiloAddresses with specified IP endpoint address and silo generation number.

NewLocalAddress(Int32)

Factory for creating new SiloAddresses for silo on this machine with specified generation number.

ToLongString()

Return a long string representation of this SiloAddress.

ToParsableString()

Return this SiloAddress in a standard string form, suitable for later use with the FromParsableString method.

ToString()

Return a long string representation of this SiloAddress.

ToStringWithHashCode()

Return a long string representation of this SiloAddress, including it's consistent hash value.

Explicit Interface Implementations

IFormattable.ToString(String, IFormatProvider)
ISpanFormattable.TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Extension Methods

ToGatewayUri(SiloAddress)

Represent a silo address in the gateway URI format.

Applies to