共用方式為


IChangeFeedObserver.CloseAsync Method

Definition

This is called when change feed observer is closed.

public System.Threading.Tasks.Task CloseAsync (Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.IChangeFeedObserverContext context, Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.ChangeFeedObserverCloseReason reason);
abstract member CloseAsync : Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.IChangeFeedObserverContext * Microsoft.Azure.Documents.ChangeFeedProcessor.FeedProcessing.ChangeFeedObserverCloseReason -> System.Threading.Tasks.Task
Public Function CloseAsync (context As IChangeFeedObserverContext, reason As ChangeFeedObserverCloseReason) As Task

Parameters

context
IChangeFeedObserverContext

The context specifying partition for this observer, etc.

reason
ChangeFeedObserverCloseReason

Specifies the reason the observer is closed.

Returns

A Task to allow asynchronous execution.

Applies to