Edytuj

Udostępnij za pośrednictwem


GrainExtensions Class

Definition

Extension methods for grains.

public static class GrainExtensions
type GrainExtensions = class
Public Module GrainExtensions
Inheritance
GrainExtensions

Methods

AsReference(IAddressable, Type)

Returns a typed reference to the provided grain.

AsReference<TGrainInterface>(IAddressable)

Returns a typed reference to the provided grain.

BindGrainReference(IAddressable, IGrainFactory)

Binds the grain reference to the provided IGrainFactory.

Cast(IAddressable, Type)

Returns a typed reference to the provided grain.

Cast<TGrainInterface>(IAddressable)

Returns a typed reference to the provided grain.

GetGrainId(IAddressable)

Returns the grain id corresponding to the provided grain.

GetGrainIdentity(IGrain)
GetPrimaryKey(IAddressable, String)

Returns the Guid representation of a grain primary key.

GetPrimaryKey(IAddressable)

Returns the Guid representation of a grain primary key.

GetPrimaryKey(IGrain, String)
GetPrimaryKey(IGrain)
GetPrimaryKeyLong(IAddressable, String)

Returns the long representation of a grain primary key.

GetPrimaryKeyLong(IAddressable)

Returns the long representation of a grain primary key.

GetPrimaryKeyLong(IGrain, String)
GetPrimaryKeyLong(IGrain)
GetPrimaryKeyString(IAddressable)

Returns the string primary key of the grain.

GetPrimaryKeyString(IGrainWithStringKey)
InvokeOneWay<T>(T, Func<T,Task>)

Invokes a method of a grain interface is one-way fashion so that no response message will be sent to the caller.

InvokeOneWay<T>(T, Func<T,ValueTask>)

Invokes a method of a grain interface is one-way fashion so that no response message will be sent to the caller.

IsPrimaryKeyBasedOnLong(IAddressable)

Returns whether part of the primary key is of type long.

Applies to