Click or drag to resize

ServiceBaseSendRequestAsyncTResult Method (String, CancellationToken, NullableInt32)

Send the Request via Async method and deserialize the result into an expected type. No parameters can be handed to the JSON-RPC remote procedure if using this method.

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

Parameters

methodName
Type: SystemString
The JSON-RPC method (aka remote procedure) to call
cancellationToken
Type: System.ThreadingCancellationToken
For notifyig 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