Class OpenBiRequestExtensions
Extension methods for IOpenBiRequest.
Inheritance
OpenBiRequestExtensions
Namespace: BiExcellence.OpenBi.Api
Assembly: BiExcellence.OpenBi.Api.dll
Syntax
public static class OpenBiRequestExtensions
Methods
AddParameter<T>(IOpenBiRequest, string, T?)
Adds a parameter to the IOpenBiRequest.
Declaration
public static IOpenBiRequest AddParameter<T>(this IOpenBiRequest request, string name, T? value)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiRequest | request | The request. |
string | name | The name of the parameter. |
T | value | The value of the parameter. |
Returns
Type | Description |
---|---|
IOpenBiRequest |
Type Parameters
Name | Description |
---|---|
T | The type of the parameter value. |
SendAsync(IOpenBiRequest, CancellationToken)
Send the IOpenBiRequest and return the IOpenBiResponse
Declaration
public static Task<IOpenBiResponse> SendAsync(this IOpenBiRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IOpenBiRequest | request | the request |
CancellationToken | cancellationToken | the cancellation token used for the request |
Returns
Type | Description |
---|---|
Task<IOpenBiResponse> | the response |