Прочетете на английски Редактиране

Споделяне чрез


SiloAddress Class

Definition

Data class encapsulating the details of silo addresses.

C#
[System.Serializable]
public class SiloAddress : IComparable, IComparable<Orleans.Runtime.SiloAddress>, IEquatable<Orleans.Runtime.SiloAddress>
C#
[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
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

Extension Methods

ToGatewayUri(SiloAddress)

Represent a silo address in the gateway URI format.

Applies to

Продукт Версии
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0