GrainContextComponentExtensions.GetGrainExtension<TComponent> 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.
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.