Redigera

Dela via


IGrainServiceFactory.CastToGrainServiceReference<T> Method

Definition

Casts a grain reference to a typed grain service reference. Used by grain indexing.

public T CastToGrainServiceReference<T> (Orleans.Runtime.GrainReference grainReference) where T : Orleans.Services.IGrainService;
abstract member CastToGrainServiceReference : Orleans.Runtime.GrainReference -> 'T (requires 'T :> Orleans.Services.IGrainService)
Public Function CastToGrainServiceReference(Of T As IGrainService) (grainReference As GrainReference) As T

Type Parameters

T

The grain service interface.

Parameters

grainReference
GrainReference

The grain reference.

Returns

T

A reference to the specified grain service.

Applies to