Edytuj

Udostępnij za pośrednictwem


IGrainReferenceRuntime.Cast(IAddressable, Type) Method

Definition

Converts the provided grain to the provided interfaceType.

public object Cast (Orleans.Runtime.IAddressable grain, Type interfaceType);
abstract member Cast : Orleans.Runtime.IAddressable * Type -> obj
Public Function Cast (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