Share via


ChangeFeedEventHost.RegisterObserverAsync<T> Method

Definition

Asynchronously registers the observer interface implementation with the host. This method also starts the host and enables it to start participating in the partition distribution process.

public System.Threading.Tasks.Task RegisterObserverAsync<T> () where T : Microsoft.Azure.Documents.ChangeFeedProcessor.IChangeFeedObserver, new();
member this.RegisterObserverAsync : unit -> System.Threading.Tasks.Task (requires 'T :> Microsoft.Azure.Documents.ChangeFeedProcessor.IChangeFeedObserver and 'T : (new : unit -> 'T))
Public Function RegisterObserverAsync(Of T As {IChangeFeedObserverNew}) () As Task

Type Parameters

T

Implementation of your application-specific event observer.

Returns

A task indicating that the ChangeFeedEventHost instance has started.

Applies to