IChangeFeedObserver.CloseAsync 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.
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.
Specifies the reason the observer is closed.
Returns
A Task to allow asynchronous execution.