Skip to main content Skip to complementary content

SendAsync Method

Overloads

SendAsync(Int32, String, IEnumerable<String>, Object[])

Sends a request asynchronously to a Qlik Sense instance

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

SendAsync(Int32, String, IEnumerable<String>, Object[])

Sends a request asynchronously to a Qlik Sense instance

Declaration

      public Task<Response> SendAsync(int wsHandle, string wsMethod, IEnumerable<string> argumentNames = null, params object[] arguments)
    

Parameters

Type Name Description
System.Int32 wsHandle

Handle to a specific Qlik Sense entity instance

System.String wsMethod

Method name

System.Collections.Generic.IEnumerable<System.String> argumentNames

Positional argument names for the method

System.Object[] arguments

Arguments for method

Returns

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

A Task with default unhandled Response instance

Implements

SendAsync(Request)

Sends a request asynchronously to a Qlik Sense instance

Declaration

      public Task SendAsync(Request request)
    

Parameters

Type Name Description
Request request

The request object to send.

Returns

Type Description
System.Threading.Tasks.Task

A task that completes when a response is received for the request.

Implements

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

Declaration

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

Parameters

Type Name Description
Request request

The request object to send.

System.Func<Response, T> continueWith

The continuation method to used when deserializing the response.

Returns

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

A task with the continuation method applies to the received response as result.

Type Parameters

Name Description
T

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!