IFulltextSessionFlushChangesAsync(CancellationToken) Method

Asynchronously flushes all pending changes, i.e. all changes made via Save and Delete since the start of the session or since the last call to FlushChanges. All statements are executed within one transaction.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
Task FlushChangesAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken  CancellationToken
The token to monitor for cancellation requests.

Return Value

Task
A task representing the asynchronous operation.

Exceptions

ObjectDisposedExceptionOccurs when the session has already been disposed.
FulltextExceptionOccurs when there is an error during the execution of the queries.

See Also