public ResolveIncidentCommand(Gateway.GatewayClient client, long incidentKey) { request = new ResolveIncidentRequest { IncidentKey = incidentKey }; this.client = client; }
public ResolveIncidentCommand(Gateway.GatewayClient client, IAsyncRetryStrategy asyncRetryStrategy, long incidentKey) { request = new ResolveIncidentRequest { IncidentKey = incidentKey }; this.client = client; this.asyncRetryStrategy = asyncRetryStrategy; }
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); }
public override Task <ResolveIncidentResponse> ResolveIncident(ResolveIncidentRequest request, ServerCallContext context) { return(Task.FromResult((ResolveIncidentResponse)HandleRequest(request, context))); }
public override AsyncUnaryCall <ResolveIncidentResponse> ResolveIncidentAsync(ResolveIncidentRequest request, CallOptions options) { throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed); }
public override AsyncUnaryCall <ResolveIncidentResponse> ResolveIncidentAsync(ResolveIncidentRequest request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { throw new ObjectDisposedException(ZeebeClientWasAlreadyDisposed); }