Table of Contents

Delegate Container.ChangeFeedStreamHandler

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

Delegate to receive the changes within a ChangeFeedProcessor execution.

public delegate Task Container.ChangeFeedStreamHandler(ChangeFeedProcessorContext context, Stream changes, CancellationToken cancellationToken)

Parameters

context ChangeFeedProcessorContext

The context related to the changes.

changes Stream

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.

Extension Methods

Constructors

ChangeFeedStreamHandler(object, nint)

public ChangeFeedStreamHandler(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(ChangeFeedProcessorContext, Stream, CancellationToken, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(ChangeFeedProcessorContext context, Stream changes, CancellationToken cancellationToken, AsyncCallback callback, object @object)

Parameters

context ChangeFeedProcessorContext
changes Stream
cancellationToken CancellationToken
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task

Invoke(ChangeFeedProcessorContext, Stream, CancellationToken)

public virtual Task Invoke(ChangeFeedProcessorContext context, Stream changes, CancellationToken cancellationToken)

Parameters

context ChangeFeedProcessorContext
changes Stream
cancellationToken CancellationToken

Returns

Task