Server.CancelCheckpoint Method
Cancels a pending asynchronous checkpoint.
Namespace: Microsoft.ComplexEventProcessing
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public void CancelCheckpoint(
IAsyncResult asyncResult
)
Parameters
- asyncResult
Type: System.IAsyncResult
The reference to the pending asynchronous request to cancel.
Remarks
This is an asynchronous operation. It initiates the cancelation of the checkpoint. The completion of the cancel still happens through the IAsyncResult received by the BeginCheckpoint call. That is, the IAsyncResult from a BeginCheckpoint can have 3 possible outcomes:
The checkpoint completes. The value returned by EndCheckpoint is true.
The checkpoint is canceled by the user. The value returned by EndCheckpoint is false.
The checkpoint fails. An exception is raised by EndCheckpoint.
For more information, see Building Resilient StreamInsight Applications.