Table of Contents

Delegate Container.ChangesHandler<T>

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

Delegate to receive the changes within a ChangeFeedProcessor execution.

public delegate Task Container.ChangesHandler<T>(IReadOnlyCollection<T> changes, CancellationToken cancellationToken)

Parameters

changes IReadOnlyCollection<T>

The changes that happened.

cancellationToken CancellationToken

A cancellation token representing the current cancellation status of the ChangeFeedProcessor instance.

Returns

Task

A Task representing the asynchronous operation that is going to be done with the changes.

Type Parameters

T
Extension Methods

Constructors

ChangesHandler(object, nint)

public ChangesHandler(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(IReadOnlyCollection<T>, CancellationToken, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(IReadOnlyCollection<T> changes, CancellationToken cancellationToken, AsyncCallback callback, object @object)

Parameters

changes IReadOnlyCollection<T>
cancellationToken CancellationToken
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task

Invoke(IReadOnlyCollection<T>, CancellationToken)

public virtual Task Invoke(IReadOnlyCollection<T> changes, CancellationToken cancellationToken)

Parameters

changes IReadOnlyCollection<T>
cancellationToken CancellationToken

Returns

Task