Edit

Share via


GrainContextComponentExtensions.GetGrainExtension<TComponent> Method

Definition

Used by generated code for IGrainExtension interfaces.

public static TComponent GetGrainExtension<TComponent> (this Orleans.Runtime.IGrainContext context) where TComponent : class, Orleans.Runtime.IGrainExtension;
static member GetGrainExtension : Orleans.Runtime.IGrainContext -> 'Component (requires 'Component : null and 'Component :> Orleans.Runtime.IGrainExtension)
<Extension()>
Public Function GetGrainExtension(Of TComponent As {Class, IGrainExtension}) (context As IGrainContext) As TComponent

Type Parameters

TComponent

The type of the component to get.

Parameters

context
IGrainContext

The grain context.

Returns

TComponent

The grain extension.

Applies to