Click or drag to resize

ServiceBaseSendRequestAsyncTResult Method (String, Object, CancellationToken, NullableInt32)

Send the Request via Async method and deserialize the result into an expected type.

Namespace:  SolidFire.Core
Assembly:  SolidFire.SDK (in SolidFire.SDK.dll) Version: 12.3.0.0
Syntax
C#
public Task<TResult> SendRequestAsync<TResult>(
	string methodName,
	Object requestParams,
	CancellationToken cancellationToken,
	Nullable<int> id = null
)

Parameters

methodName
Type: SystemString
The JSON-RPC method (aka remote procedure) to call
requestParams
Type: SystemObject
Any paramters to be handed to the remote procedure
cancellationToken
Type: System.ThreadingCancellationToken
For notifying when the operation should be cancelled
id (Optional)
Type: SystemNullableInt32
The ID of the request which will be matched to the ID of the response (Optional)

Type Parameters

TResult
The type to expect the http result to be deserialized into

Return Value

Type: TaskTResult
The task that is processing the http request/response.
See Also