public sealed class RunicTestOperation An operation started with a start request.
Properties
AdmissionJson
public string AdmissionJson { get; } The admission reply as .NET serialized it.
Contract
public string Contract { get; } The operation contract: {view}:{fingerprint}.
Member
public string Member { get; } The command member, such as save.
Reason
public string? Reason { get; } Why the operation was not accepted.
RequestId
public string RequestId { get; } The operation id the operation was started with.
Methods
Cancel
public RunicOperationCancelKind Cancel() Requests cancellation with a cancel request and returns how .NET answered, blocking the calling thread.
Remarks
Prefer RunicTestOperation.CancelAsync in suites that run tests in parallel.
CancelAsync
public Task<RunicOperationCancelKind> CancelAsync(CancellationToken cancellationToken = default) Requests cancellation with a cancel request and returns how .NET answered, without blocking a thread.
Parameters
cancellationTokenStops waiting for the reply; the request may still reach the window.
GetStatus
public RunicOperationStatus GetStatus() Reads the current status with a status request, blocking the calling thread until the reply.
Remarks
Prefer RunicTestOperation.GetStatusAsync in suites that run tests in parallel.
GetStatusAsync
public Task<RunicOperationStatus> GetStatusAsync(CancellationToken cancellationToken = default) Reads the current status with a status request, without blocking a thread.
Parameters
cancellationTokenStops waiting for the reply.
ReadStream
public RunicOperationStreamPage ReadStream(long cursor = 0) Reads the stream page that starts at cursor with a stream request, as the generated client's stream() does.
Exceptions
ArgumentOutOfRangeExceptioncursoris negative.
Remarks
Prefer RunicTestOperation.ReadStreamAsync in suites that run tests in parallel.
ReadStreamAsync
public Task<RunicOperationStreamPage> ReadStreamAsync(long cursor = 0, CancellationToken cancellationToken = default) Reads the stream page that starts at cursor with a stream request, as RunicTestOperation.ReadStream does, without blocking a thread.
Parameters
cursorThe cursor of the first item to read.
cancellationTokenStops waiting for the reply.
Exceptions
ArgumentOutOfRangeExceptioncursoris negative.
WaitAsync
public Task<RunicOperationStatus> WaitAsync(CancellationToken cancellationToken = default) Waits for the terminal status: watch, then the operation's pushes.