IGrainReferenceRuntime.Convert 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.
Overloads
Convert(IAddressable, Type) |
Converts the provided |
Convert<TGrainInterface>(IAddressable) |
Converts the provided |
Convert(IAddressable, Type)
- Source:
- IGrainReferenceRuntime.cs
Converts the provided grain
to the provided interfaceType
.
public object Convert (Orleans.Runtime.IAddressable grain, Type interfaceType);
abstract member Convert : Orleans.Runtime.IAddressable * Type -> obj
Public Function Convert (grain As IAddressable, interfaceType As Type) As Object
Parameters
- grain
- IAddressable
The grain.
- interfaceType
- Type
The resulting interface type.
Returns
A reference to grain
which implements interfaceType
.
Applies to
Convert<TGrainInterface>(IAddressable)
- Source:
- IGrainReferenceRuntime.cs
Converts the provided grain
to the specified interface.
public TGrainInterface Convert<TGrainInterface> (Orleans.Runtime.IAddressable grain);
abstract member Convert : Orleans.Runtime.IAddressable -> 'GrainInterface
Public Function Convert(Of TGrainInterface) (grain As IAddressable) As TGrainInterface
Type Parameters
- TGrainInterface
The target grain interface type.
Parameters
- grain
- IAddressable
The grain reference being cast.
Returns
A reference to grain
which implements TGrainInterface
.