GrainReference.Cast<TGrainInterface> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.