# IQlikConnection Interface

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

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

## Syntax

```
public interface IQlikConnection : IRpcConnection, IDisposable
```

## Properties

| Name | Description |
| --- | --- |
| [App](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.App.htm#Qlik_Engine_Communication_IQlikConnection_App) | The active App if any |
| [CancellationToken](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.CancellationToken.htm#Qlik_Engine_Communication_IQlikConnection_CancellationToken) | The token used to synchronize shutdown events with all outstanding tasks |
| [Hub](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.Hub.htm#Qlik_Engine_Communication_IQlikConnection_Hub) | The active Hub |
| [ServerUri](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.ServerUri.htm#Qlik_Engine_Communication_IQlikConnection_ServerUri) | The Uri used to connect to the Qlik Sense instance |
| [Session](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.Session.htm#Qlik_Engine_Communication_IQlikConnection_Session) | The session metadata used for identifying the currently used connection |
| [SessionToken](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.SessionToken.htm#Qlik_Engine_Communication_IQlikConnection_SessionToken) | The session metadata token used for identifying the currently used connection |

## Methods

| Name | Description |
| --- | --- |
| [GetQixObject<T>(String, Func<AsyncHandle, Func<Response, T>, String, Task<T>>, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.GetQixObject.htm#Qlik_Engine_Communication_IQlikConnection_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. |
| [New<T>(JObject)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.New.htm#Qlik_Engine_Communication_IQlikConnection_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/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.RetryOnAbort.htm#Qlik_Engine_Communication_IQlikConnection_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/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.SendAsync.htm#Qlik_Engine_Communication_IQlikConnection_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/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.SendAsync.htm#Qlik_Engine_Communication_IQlikConnection_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, Func<Response, T>)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Engine.Communication.IQlikConnection.SendAsync.htm#Qlik_Engine_Communication_IQlikConnection_SendAsync__1_Qlik_Engine_Communication_IO_Request_System_Func_Qlik_Engine_Communication_IO_Response___0__) | Sends a request asynchronously to a Qlik Sense instance with a specified response handler |

## Events

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