Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Grain.OnActivateAsync Method

Definition

Namespace:
Orleans
Assembly:
Orleans.dll
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core v1.5.10
Package:
Microsoft.Orleans.Core.Abstractions v2.4.5
Package:
Microsoft.Orleans.Core.Abstractions v3.6.5
Package:
Microsoft.Orleans.Core.Abstractions v10.0.0
Package:
Microsoft.Orleans.Core.Abstractions v7.2.5
Package:
Microsoft.Orleans.Core.Abstractions v8.0.0
Package:
Microsoft.Orleans.Core.Abstractions v8.1.0
Package:
Microsoft.Orleans.Core.Abstractions v8.2.0
Package:
Microsoft.Orleans.Core.Abstractions v9.0.0
Package:
Microsoft.Orleans.Core.Abstractions v9.1.2

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.

Overloads

Name Description
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.

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