Closed dust63 closed 1 year ago
When I debug from code I can see that the call to AckMessage method is hanging on await _stream.RequestStream.WriteAsync(sr);
in the Transaction.cs file
private async Task<StreamQueueMessagesResponse> StreamQueueMessage(StreamQueueMessagesRequest sr, CancellationToken cancellationToken)
{
if (_stream == null)
{
throw new RpcException(new Status(StatusCode.NotFound, "stream is null"), "Transaction stream is not opened, please Receive new Message");
}
// implement bi-di streams 'SendEventStream (stream Event) returns (stream Result)'
// Send Event via GRPC RequestStream,
// Hanging here
await _stream.RequestStream.WriteAsync(sr);
await _stream.ResponseStream.MoveNext(cancellationToken);
return _stream.ResponseStream.Current;
}
Hi, Please use the QueueStream implementation
When I try to use AckMessage or RejectMessage of the transaction object the code is hanging and no result was returned:
Here a sample to reproduce the consumer problem