Share via


StatelessService.OnCloseAsync(CancellationToken) Method

Definition

This method is called as the final step of closing the service. Override this method to be notified that Close has completed for this instance's internal components.

For information about Reliable Services life cycle please see https://docs.microsoft.com/azure/service-fabric/service-fabric-reliable-services-lifecycle

protected virtual System.Threading.Tasks.Task OnCloseAsync (System.Threading.CancellationToken cancellationToken);
abstract member OnCloseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnCloseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnCloseAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

Cancellation token provided to monitor for cancellation requests.

Returns

A Task that represents outstanding operation.

Applies to