Edytuj

Udostępnij za pośrednictwem


IGrainReferenceRuntime.Convert Method

Definition

Overloads

Convert(IAddressable, Type)

Converts the provided grain to the provided interfaceType.

Convert<TGrainInterface>(IAddressable)

Converts the provided grain to the specified interface.

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

TGrainInterface

A reference to grain which implements TGrainInterface.

Applies to