Hi,
I am trying to connect to a stream using the AMQP .NET client. In the example in the doc
(
https://rabbitmq.com/streams.html) I can see that I should be able to consume from a specific point in time by setting x-stream-offset to the number of seconds since epoch. However, if I do that it seems to use it as an offset on the index in the queue instead.
Am I misunderstanding something?. How do I get it to use it as a time offset instead of a index offset?
The exact code I use is as follows:
var fiveMinAgo = DateTimeOffset.UtcNow.AddMinutes(-5).ToUnixTimeSeconds();
var ff = model.BasicConsume("test-stream", false, "myconsumerTag", new Dictionary<string, object>() {{ "x-stream-offset", fiveMinAgo}}, consumer);
Regards, Lars