Sphinx QLConnectionOpen Async(Cancellation Token) Method
Opens a connection to Sphinx.
Definition
Namespace: SphinxConnector.SphinxQL
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
A task representing the asynchronous operation.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public override Task OpenAsync(
CancellationToken cancellationToken
)VB
Public Overrides Function OpenAsync (
cancellationToken As CancellationToken
) As TaskParameters
- cancellationToken CancellationToken
- The token to monitor for cancellation requests.
Return Value
TaskA task representing the asynchronous operation.
Exceptions
| 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. |