-
Notifications
You must be signed in to change notification settings - Fork 257
/
Container+ChangeFeedStreamHandlerWithManualCheckpoint.xml
47 lines (46 loc) · 3.1 KB
/
Container+ChangeFeedStreamHandlerWithManualCheckpoint.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<Type Name="Container+ChangeFeedStreamHandlerWithManualCheckpoint" FullName="Microsoft.Azure.Cosmos.Container+ChangeFeedStreamHandlerWithManualCheckpoint">
<TypeSignature Language="C#" Value="public delegate System.Threading.Tasks.Task Container.ChangeFeedStreamHandlerWithManualCheckpoint(ChangeFeedProcessorContext context, Stream changes, Func<Task> checkpointAsync, CancellationToken cancellationToken);" />
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi sealed Container/ChangeFeedStreamHandlerWithManualCheckpoint extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:Microsoft.Azure.Cosmos.Container.ChangeFeedStreamHandlerWithManualCheckpoint" />
<TypeSignature Language="VB.NET" Value="Public Delegate Function Container.ChangeFeedStreamHandlerWithManualCheckpoint(context As ChangeFeedProcessorContext, changes As Stream, checkpointAsync As Func(Of Task), cancellationToken As CancellationToken) As Task " />
<TypeSignature Language="F#" Value="type Container.ChangeFeedStreamHandlerWithManualCheckpoint = delegate of ChangeFeedProcessorContext * Stream * Func<Task> * CancellationToken -> Task" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Cosmos.Client</AssemblyName>
<AssemblyVersion>3.36.0.0</AssemblyVersion>
<AssemblyVersion>3.38.1.0</AssemblyVersion>
<AssemblyVersion>3.39.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="context" Type="Microsoft.Azure.Cosmos.ChangeFeedProcessorContext" />
<Parameter Name="changes" Type="System.IO.Stream" />
<Parameter Name="checkpointAsync" Type="System.Func<System.Threading.Tasks.Task>" />
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
</Parameters>
<ReturnValue>
<ReturnType>System.Threading.Tasks.Task</ReturnType>
</ReturnValue>
<Docs>
<param name="context">The context related to the changes.</param>
<param name="changes">The changes that happened.</param>
<param name="checkpointAsync">A task representing an asynchronous checkpoint on the progress of a lease.</param>
<param name="cancellationToken">A cancellation token representing the current cancellation status of the <see cref="T:Microsoft.Azure.Cosmos.ChangeFeedProcessor" /> instance.</param>
<summary>
Delegate to receive the changes within a <see cref="T:Microsoft.Azure.Cosmos.ChangeFeedProcessor" /> execution with manual checkpoint.
</summary>
<returns>A <see cref="T:System.Threading.Tasks.Task" /> representing the asynchronous operation that is going to be done with the changes.</returns>
<remarks>To be added.</remarks>
<example>
<code language="c#"><![CDATA[
(ChangeFeedProcessorContext context, Stream stream, Func<Task> checkpointAsync, CancellationToken cancellationToken) =>
{
// consume stream
// On certain condition, we can checkpoint
await checkpointAsync();
}
]]></code>
</example>
</Docs>
</Type>