public ResolveIncidentCommand(Gateway.GatewayClient client, long incidentKey)
 {
     request = new ResolveIncidentRequest
     {
         IncidentKey = incidentKey
     };
     this.client = client;
 }
Пример #2
0
 public ResolveIncidentCommand(Gateway.GatewayClient client, IAsyncRetryStrategy asyncRetryStrategy, long incidentKey)
 {
     request = new ResolveIncidentRequest
     {
         IncidentKey = incidentKey
     };
     this.client             = client;
     this.asyncRetryStrategy = asyncRetryStrategy;
 }
Пример #3
0
        public async Task ShouldSendRequestAsExpected()
        {
            // given
            var expected = new ResolveIncidentRequest
            {
                IncidentKey = 1201321
            };

            // when
            await ZeebeClient.NewResolveIncidentCommand(1201321).Send();

            // then
            var request = TestService.Requests[typeof(ResolveIncidentRequest)][0];

            Assert.AreEqual(expected, request);
        }
Пример #4
0
 public override Task <ResolveIncidentResponse> ResolveIncident(ResolveIncidentRequest request, ServerCallContext context)
 {
     return(Task.FromResult((ResolveIncidentResponse)HandleRequest(request, context)));
 }
Пример #5
0
 public override AsyncUnaryCall <ResolveIncidentResponse> ResolveIncidentAsync(ResolveIncidentRequest request, CallOptions options)
 {
     throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed);
 }
Пример #6
0
 public override AsyncUnaryCall <ResolveIncidentResponse> ResolveIncidentAsync(ResolveIncidentRequest request, Metadata headers = null, DateTime?deadline = null,
                                                                               CancellationToken cancellationToken = default(CancellationToken))
 {
     throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed);
 }