Share via


IChangeFeedObserver.CloseAsync Method

Definition

This is called when change feed observer is closed.

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

Parameters

context
ChangeFeedObserverContext

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