JournaledGrain<TGrainState,TEventBase>.OnActivateAsync 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.
Overloads
OnActivateAsync() |
By default, upon activation, the journaled grain waits until it has loaded the latest view from storage. Subclasses can override this behavior, and skip the wait if desired. |
OnActivateAsync(CancellationToken) |
By default, upon activation, the journaled grain waits until it has loaded the latest view from storage. Subclasses can override this behavior, and skip the wait if desired. |
OnActivateAsync()
- Source:
- JournaledGrain.cs
By default, upon activation, the journaled grain waits until it has loaded the latest view from storage. Subclasses can override this behavior, and skip the wait if desired.
public override System.Threading.Tasks.Task OnActivateAsync ();
override this.OnActivateAsync : unit -> System.Threading.Tasks.Task
Public Overrides Function OnActivateAsync () As Task
Returns
Applies to
OnActivateAsync(CancellationToken)
By default, upon activation, the journaled grain waits until it has loaded the latest view from storage. Subclasses can override this behavior, and skip the wait if desired.
public override System.Threading.Tasks.Task OnActivateAsync (System.Threading.CancellationToken cancellationToken);
override this.OnActivateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function OnActivateAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken