Grain.OnActivateAsync Method

Definition

Overloads

OnActivateAsync()

This method is called at the end of the process of activating a grain. It is called before any messages have been dispatched to the grain. For grains with declared persistent state, this method is called after the State property has been populated.

OnActivateAsync(CancellationToken)

This method is called at the end of the process of activating a grain. It is called before any messages have been dispatched to the grain. For grains with declared persistent state, this method is called after the State property has been populated.

OnActivateAsync()

This method is called at the end of the process of activating a grain. It is called before any messages have been dispatched to the grain. For grains with declared persistent state, this method is called after the State property has been populated.

public virtual System.Threading.Tasks.Task OnActivateAsync ();
abstract member OnActivateAsync : unit -> System.Threading.Tasks.Task
override this.OnActivateAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function OnActivateAsync () As Task

Returns

Applies to

OnActivateAsync(CancellationToken)

This method is called at the end of the process of activating a grain. It is called before any messages have been dispatched to the grain. For grains with declared persistent state, this method is called after the State property has been populated.

public virtual System.Threading.Tasks.Task OnActivateAsync (System.Threading.CancellationToken cancellationToken);
abstract member OnActivateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnActivateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function OnActivateAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

A cancellation token which signals when activation is being canceled.

Returns

Implements

Applies to