ActorId Class

Definition

The ActorId represents the identity of an actor within an actor service. This is used to identify the partition of the actor service inside which the actor will run, see GetPartitionKey()

[System.Runtime.Serialization.DataContract(Name="ActorId")]
public sealed class ActorId : IComparable<Microsoft.ServiceFabric.Actors.ActorId>, IEquatable<Microsoft.ServiceFabric.Actors.ActorId>
type ActorId = class
    interface IEquatable<ActorId>
    interface IComparable<ActorId>
Public NotInheritable Class ActorId
Implements IComparable(Of ActorId), IEquatable(Of ActorId)
Inheritance
System.Object
ActorId
Attributes
System.Runtime.Serialization.DataContractAttribute
Implements
System.IComparable<ActorId> System.IEquatable<ActorId>

Constructors

ActorId(Guid)

Initializes a new instance of ActorId class with Id value of type System.Guid.

ActorId(Int64)

Initializes a new instance of ActorId class with Id value of type System.Int64.

ActorId(String)

Initializes a new instance of ActorId class with Id value of type System.String.

Properties

Kind

Gets the ActorIdKind for the ActorId.

Methods

CompareTo(ActorId)

Compares this instance with a specified ActorId object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified actorId.

CreateRandom()

Create a new instance of the ActorId of kind Long with a random System.Int64 id value.

Equals(ActorId)

Determines whether this instance and another specified ActorId object have the same value.

Equals(Object)

Determines whether this instance and a specified object, which must also be a ActorId object, have the same value. Overrides System.Object.Equals(System.Object).

GetGuidId()

Gets id for ActorId whose ActorIdKind is Guid.

GetHashCode()

Overrides System.Object.GetHashCode.

GetLongId()

Gets id for ActorId whose ActorIdKind is Long.

GetPartitionKey()

Gets the partition key for this ActorId.

GetStringId()

Gets id for ActorId whose ActorIdKind is String.

ToString()

Overrides System.Object.ToString.

Operators

Equality(ActorId, ActorId)

Determines whether two specified actorIds have the same id and ActorIdKind.

Inequality(ActorId, ActorId)

Determines whether two specified actorIds have different values for id and ActorIdKind.

Applies to