public UpdateRetriesCommand(Gateway.GatewayClient client, long jobKey) { request = new UpdateJobRetriesRequest { JobKey = jobKey }; this.client = client; }
public UpdateRetriesCommand(Gateway.GatewayClient client, IAsyncRetryStrategy asyncRetryStrategy, long jobKey) { request = new UpdateJobRetriesRequest { JobKey = jobKey }; this.client = client; this.asyncRetryStrategy = asyncRetryStrategy; }
public async Task shouldSendRequestAsExpected() { // given var expectedRequest = new UpdateJobRetriesRequest { JobKey = 1024, Retries = 223 }; // when await ZeebeClient .NewUpdateRetriesCommand(1024) .Retries(223) .Send(); // then var request = TestService.Requests[0]; Assert.AreEqual(expectedRequest, request); }
public override Task <UpdateJobRetriesResponse> UpdateJobRetries(UpdateJobRetriesRequest request, ServerCallContext context) { return(Task.FromResult((UpdateJobRetriesResponse)HandleRequest(request, context))); }
public override AsyncUnaryCall <UpdateJobRetriesResponse> UpdateJobRetriesAsync(UpdateJobRetriesRequest request, CallOptions options) { throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed); }
public override AsyncUnaryCall <UpdateJobRetriesResponse> UpdateJobRetriesAsync(UpdateJobRetriesRequest request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed); }
public async Task <NoContentResult> UpdateJobRetries([FromBody] UpdateJobRetriesRequest request) { await _daprClient.InvokeBindingAsync("command", Commands.UpdateJobRetries, request); return(NoContent()); }