Redigera

Dela via


GrainReference.Cast<TGrainInterface> Method

Definition

Creates a new grain reference which implements the specified grain interface.

public virtual TGrainInterface Cast<TGrainInterface> () where TGrainInterface : Orleans.Runtime.IAddressable;
abstract member Cast : unit -> 'GrainInterface (requires 'GrainInterface :> Orleans.Runtime.IAddressable)
override this.Cast : unit -> 'GrainInterface (requires 'GrainInterface :> Orleans.Runtime.IAddressable)
Public Overridable Function Cast(Of TGrainInterface As IAddressable) () As TGrainInterface

Type Parameters

TGrainInterface

The grain interface type.

Returns

TGrainInterface

A new grain reference which implements the specified interface type.

Applies to