Interface ISubmissionResultAwaiter

Namespace: IndicoV2-Extensions-SubmissionResult
Assembly: IndicoV2-Abstractions-dll

public interface ISubmissionResultAwaiter

Methods

WaitReady(int, TimeSpan, CancellationToken)

Waits until given gets processed by the server and then returns 's result-
Throws after cancellationToken has been cancelled or timeout has been exceeded-

Task<JObject> WaitReady(int submissionId, TimeSpan checkInterval = default, CancellationToken cancellationToken = default)

Parameters

submissionId int

's Id

checkInterval TimeSpan

Interval between server calls-

cancellationToken CancellationToken

for handling cancellation of asynchronous operations-

Returns

Task<JObject>

Exceptions

TaskCanceledException

WaitReady(int, SubmissionStatus, TimeSpan, CancellationToken)

Task<JObject> WaitReady(int submissionId, SubmissionStatus awaitedStatus, TimeSpan checkInterval = default, CancellationToken cancellationToken = default)

Parameters

submissionId int

awaitedStatus SubmissionStatus

Wait until submission reaches this status-

checkInterval TimeSpan

cancellationToken CancellationToken

Returns

Task<JObject>