IStatefulServiceReplica.CloseAsync(CancellationToken) 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.
Closes the service replica gracefully when it is being shut down.
public System.Threading.Tasks.Task CloseAsync (System.Threading.CancellationToken cancellationToken);
abstract member CloseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CloseAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
The CancellationToken object that the operation is observing. It can be used to send a notification that the operation should be canceled. Note that cancellation is advisory and that the operation might still be completed even if it is canceled.
Returns
Returns Task.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET