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()

Source:
Grain.cs

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.

C#
public virtual System.Threading.Tasks.Task OnActivateAsync();

Returns

Applies to

.NET Orleans 3.6.0 ja muud versioonid
Toode Versioonid
.NET Orleans 1.5.10, 3.4.5, 3.6.0

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.

C#
public virtual System.Threading.Tasks.Task OnActivateAsync(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken
CancellationToken

A cancellation token which signals when activation is being canceled.

Returns

Implements

Applies to

.NET Orleans 9.0.0 ja muud versioonid
Toode Versioonid
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0