# QlikConnection Class

Namespace: [Qlik.Engine.Communication](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.htm)  
Assembly: Qlik.Engine.dll

QlikConnection is responsible for handling the communication with a Qlik Sense instance

## Inheritance

* System.Object
  * [RpcConnection](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Sense.JsonRpc.RpcConnection.htm)
    * QlikConnection

## Syntax

```
public class QlikConnection : RpcConnection, IQlikConnection, IRpcConnection, IDisposable
```

## Constructors

| Name | Description |
| --- | --- |
| [QlikConnection(IGenericLocation, ISession)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.-ctor.htm#Qlik_Engine_Communication_QlikConnection__ctor_Qlik_Sense_JsonRpc_IGenericLocation_Qlik_Engine_ISession_) | Creates a new connection to a Qlik Sense instance based on a known location and specific session |

## Properties

| Name | Description |
| --- | --- |
| [App](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.App.htm#Qlik_Engine_Communication_QlikConnection_App) | The active App if any |
| [Hub](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.Hub.htm#Qlik_Engine_Communication_QlikConnection_Hub) | The active Hub |
| [Session](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.Session.htm#Qlik_Engine_Communication_QlikConnection_Session) | The session specification. |
| [SessionToken](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.SessionToken.htm#Qlik_Engine_Communication_QlikConnection_SessionToken) | The session metadata token used for identifying the currently used connection |

## Methods

| Name | Description |
| --- | --- |
| [AwaitResponse(Task, String, CancellationToken)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.AwaitResponse.htm#Qlik_Engine_Communication_QlikConnection_AwaitResponse_System_Threading_Tasks_Task_System_String_System_Threading_CancellationToken_) | Await the arrival of a response for a method call to the engine. |
| [AwaitResponse<T>(Task<T>, String, CancellationToken)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.AwaitResponse.htm#Qlik_Engine_Communication_QlikConnection_AwaitResponse__1_System_Threading_Tasks_Task___0__System_String_System_Threading_CancellationToken_) | Await the arrival of a response for a method call to the engine. |
| [Deserialize<T>(JToken)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.Deserialize.htm#Qlik_Engine_Communication_QlikConnection_Deserialize__1_Newtonsoft_Json_Linq_JToken_) | Deserialize a token to a specific type. |
| [GetQixObject<T>(String, Func<AsyncHandle, Func<Response, T>, String, Task<T>>, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.GetQixObject.htm#Qlik_Engine_Communication_QlikConnection_GetQixObject__1_System_String_System_Func_Qlik_Engine_AsyncHandle_System_Func_Qlik_Engine_Communication_IO_Response___0__System_String_System_Threading_Tasks_Task___0___System_Func_Qlik_Engine_Communication_IO_Response___0__) | Get QIX object either from cache, or from the engine. |
| [Log(String)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.Log.htm#Qlik_Engine_Communication_QlikConnection_Log_System_String_) | Method to use when emitting a log message. |
| [MakeInboundSerializer()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.MakeInboundSerializer.htm#Qlik_Engine_Communication_QlikConnection_MakeInboundSerializer) | Method for creating the JsonSerializer used to deserialize message received from<br>the RPC connection. |
| [MakeOutboundSerializer()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.MakeOutboundSerializer.htm#Qlik_Engine_Communication_QlikConnection_MakeOutboundSerializer) | Method for creating the JsonSerializer used to serialize requests to an<br>the RPC connection. |
| [New<T>(JObject)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.New.htm#Qlik_Engine_Communication_QlikConnection_New__1_Newtonsoft_Json_Linq_JObject_) | Create a new structure bound to this session |
| [RetryOnAbort<T>(Func<Task<T>>, Int32, Int32)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.RetryOnAbort.htm#Qlik_Engine_Communication_QlikConnection_RetryOnAbort__1_System_Func_System_Threading_Tasks_Task___0___System_Int32_System_Int32_) | Perform the request and retry if the operation is aborted due to a generic abort. |
| [SendAsync(Request)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.SendAsync.htm#Qlik_Engine_Communication_QlikConnection_SendAsync_Qlik_Engine_Communication_IO_Request_) | Sends a request asynchronously to a Qlik Sense instance |
| [SendAsync(Int32, String, IEnumerable<String>, Object\[\])](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.SendAsync.htm#Qlik_Engine_Communication_QlikConnection_SendAsync_System_Int32_System_String_System_Collections_Generic_IEnumerable_System_String__System_Object___) | Sends a request asynchronously to a Qlik Sense instance |
| [SendAsync<T>(Request)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.SendAsync.htm#Qlik_Engine_Communication_QlikConnection_SendAsync__1_Qlik_Engine_Communication_IO_Request_) |  |
| [SendAsync<T>(Request, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.SendAsync.htm#Qlik_Engine_Communication_QlikConnection_SendAsync__1_Qlik_Engine_Communication_IO_Request_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Sends a request asynchronously to a Qlik Sense instance |

## Events

| Name | Description |
| --- | --- |
| [ObjectChangedMessageEvent](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.ObjectChangedMessageEvent.htm) | Event that is fired when a response received on the web socket contains change<br>notifications. |
| [ObjectClosedMessageEvent](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.ObjectClosedMessageEvent.htm) | Event that is fired when a response received on the web socket contains object<br>closed notifications. |

## Explicit Interface Implementations

| Name | Description |
| --- | --- |
| [IQlikConnection.get_CancellationToken()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.Qlik-Engine-Communication-IQlikConnection-get_CancellationToken.htm#Qlik_Engine_Communication_QlikConnection_Qlik_Engine_Communication_IQlikConnection_get_CancellationToken) |  |
| [IQlikConnection.get_ServerUri()](https://help.qlik.com/en-US/sense-developer/November2025/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.QlikConnection.Qlik-Engine-Communication-IQlikConnection-get_ServerUri.htm#Qlik_Engine_Communication_QlikConnection_Qlik_Engine_Communication_IQlikConnection_get_ServerUri) |  |