Class ResultsClientExt
Namespace: ArmoniK.Api.Client
Assembly: ArmoniK.Api.Client.dll
Extension to simplify
[PublicAPI]
public static class ResultsClientExt
Inheritance
Inherited Members
object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()
Methods
DownloadResultData(ResultsClient, string, string, CancellationToken)
Download a result
[PublicAPI]
public static Task<byte[]> DownloadResultData(this Results.ResultsClient client, string sessionId, string resultId, CancellationToken cancellationToken)
Parameters
client Results.ResultsClient
gRPC result client
sessionId string
The id of the session
resultId string
The id of the result
cancellationToken CancellationToken
Token used to cancel the execution of the method
Returns
A byte array containing the data associated to the result
UploadResultData(ResultsClient, string, string, byte[])
Upload data to populate an existing result
[PublicAPI]
public static Task<UploadResultDataResponse> UploadResultData(this Results.ResultsClient client, string sessionId, string resultId, byte[] data)
Parameters
client Results.ResultsClient
gRPC result client
sessionId string
The id of the session
resultId string
The id of the result
data byte[]
The data to send
Returns
Task<UploadResultDataResponse>
The upload result response