Пример #1
0
 public UpdateRetriesCommand(Gateway.GatewayClient client, long jobKey)
 {
     request = new UpdateJobRetriesRequest
     {
         JobKey = jobKey
     };
     this.client = client;
 }
Пример #2
0
 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);
        }
Пример #4
0
 public override Task <UpdateJobRetriesResponse> UpdateJobRetries(UpdateJobRetriesRequest request, ServerCallContext context)
 {
     return(Task.FromResult((UpdateJobRetriesResponse)HandleRequest(request, context)));
 }
Пример #5
0
 public override AsyncUnaryCall <UpdateJobRetriesResponse> UpdateJobRetriesAsync(UpdateJobRetriesRequest request, CallOptions options)
 {
     throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed);
 }
Пример #6
0
 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());
        }