IGrainContext.SetComponent<TComponent>(TComponent) Method

Definition

Sets the provided value as the component for type TComponent.

public void SetComponent<TComponent> (TComponent value) where TComponent : class;
abstract member SetComponent : 'Component -> unit (requires 'Component : null)
Public Sub SetComponent(Of TComponent As Class) (value As TComponent)

Type Parameters

TComponent

The type used to lookup this component.

Parameters

value
TComponent

The component instance.

Applies to