OpenAsync Method
Overloads
| OpenAsync(Action<String>, Action<Exception>, CancellationToken) |
Open a connection to a Qlik Sense instance based on the current location configuration and the argument session. |
OpenAsync(Action<String>, Action<Exception>, CancellationToken)
Open a connection to a Qlik Sense instance based on the current location configuration and the argument session.
Declaration
public Task<WebSocketConnectionResults> OpenAsync(Action<string> onMessage, Action<Exception> onError, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.String> | onMessage |
Callback to active when messages are received from Qlik Sense. |
| System.Action<System.Exception> | onError |
Callback to activate when an exception has occurred on the web socket connection to Qlik Sense. |
| System.Threading.CancellationToken | cancellationToken |
The token used to synchronize shutdown events. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<WebSocketConnectionResults> |
A task with the completion status of the connect operation as result. |