Click or drag to resize

SphinxQLConnectionOpenAsync Method (CancellationToken)

Opens a connection to Sphinx.

Namespace:  SphinxConnector.SphinxQL
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.3.0
Syntax
public override Task OpenAsync(
	CancellationToken cancellationToken
)

Parameters

cancellationToken
Type: System.ThreadingCancellationToken
The token to monitor for cancellation requests.

Return Value

Type: Task
A task representing the asynchronous operation.
Exceptions
ExceptionCondition
InvalidOperationException The connection has already been opened.
-or-
The ConnectionTimeout expired while retrieving a connection from the pool.
-or-
An attempt to connect to a Sphinx server with a version smaller than 2.0.1 has been made.
SphinxQLException
ObjectDisposedException The object has already been disposed.
See Also