IGrainServiceFactory.CastToGrainServiceReference<T> 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.
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.