Skip to content

ActivationId Methods

Uniquely identifies a grain activation.

Equals(ActivationId)

View source
public bool Equals(ActivationId other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherActivationId
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

override
View source
public override bool Equals(object? obj)
Indicates whether this instance and a specified object are equal.

Parameters

objobject?
The object to compare with the current instance.

Returns

true if obj and this instance are the same type and represent the same value; otherwise, false.

FromParsableString(string)

static
View source
public static ActivationId FromParsableString(string activationId)
Parses a string representation of an activation id which was created using ActivationId.

Parameters

activationIdstring
The string representation of the activation id.

Returns

The activation id.

GetDeterministic(GrainId)

static
View source
public static ActivationId GetDeterministic(GrainId grain)
Returns an activation id which has been computed deterministically and reproducibly from the provided grain id.

Parameters

grainGrainId
The grain id.

Returns

An activation id which has been computed deterministically and reproducibly from the provided grain id.

GetHashCode

override
View source
public override int GetHashCode()
Returns the hash code for this instance.

Returns

A 32-bit signed integer that is the hash code for this instance.

NewId

static
View source
public static ActivationId NewId()
Returns a new, random activation id.

Returns

A new, random activation id.

ToString

override
View source
public override string ToString()
Returns the fully qualified type name of this instance.

Returns

The fully qualified type name.

operator ==(ActivationId, ActivationId)

static
View source
public static bool operator ==(ActivationId left, ActivationId right)
Compares the provided operands for equality.

Parameters

leftActivationId
The left operand.
rightActivationId
The right operand.

Returns

true if the provided values are equal, otherwise false.

operator !=(ActivationId, ActivationId)

static
View source
public static bool operator !=(ActivationId left, ActivationId right)
Compares the provided operands for inequality.

Parameters

leftActivationId
The left operand.
rightActivationId
The right operand.

Returns

true if the provided values are not equal, otherwise false.