Skip to main content Skip to complementary content

SendAsync Method

Overloads

SendAsync(Request)

Sends a request asynchronously to a Qlik Sense instance

SendAsync<T>(Request)
SendAsync<T>(Request, Func<Response, T>)

Sends a request asynchronously to a Qlik Sense instance with a specified response handler.

SendAsync(Request)

Sends a request asynchronously to a Qlik Sense instance

Declaration

      public Task SendAsync(Request request)
    

Parameters

Type Name Description
Request request

Request to send

Returns

Type Description
System.Threading.Tasks.Task

A Task without deserialized response

Implements

Exceptions

Type Condition
System.ArgumentNullException

Thrown if request is null.

SendAsync<T>(Request)

Declaration

      [Obsolete("Use method Task SendAsync(Request) or Task<T> SendAsync<T>(Request, Func<Request, T>).")]
public Task<T> SendAsync<T>(Request request)
    

Parameters

Type Name Description
Request request

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

SendAsync<T>(Request, Func<Response, T>)

Sends a request asynchronously to a Qlik Sense instance with a specified response handler.

Declaration

      public Task<T> SendAsync<T>(Request request, Func<Response, T> continueWith)
    

Parameters

Type Name Description
Request request

Request to send

System.Func<Response, T> continueWith

Response handler that is used to change the Response object into an instance of T.

Returns

Type Description
System.Threading.Tasks.Task<T>

Task that will resolve into a handled instance of T

Type Parameters

Name Description
T

Dynamic type that should be returned

Implements

Exceptions

Type Condition
System.ArgumentNullException

Thrown if either request or continueWith is null.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!