Skip to content

Last Value queue #387

Answered by Havret
pgarbo asked this question in Q&A
Nov 11, 2022 · 1 comments · 9 replies
Discussion options

You must be logged in to vote

Hi @pgarbo,

It's not possible at the moment, but that's sth I've got on my radar for a while. I will try to implement it over the weekend.

Update
Please check 2.11.0-preview1

It should be as simple as:

var endpoint = Endpoint.Create("localhost", 5672, "guest", "guest");
var connectionFactory = new ConnectionFactory();
var connection = await connectionFactory.CreateAsync(endpoint);
var topologyManager = await connection.CreateTopologyManagerAsync();
await topologyManager.CreateQueueAsync(new QueueConfiguration
{
    Address = "my-address",
    Name = "my-queue",
    Durable = true,
    AutoCreateAddress = true, // true if address doesn't exist

    LastValueKey = "my-last-value-key" // set…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@pgarbo
Comment options

@Havret
Comment options

@pgarbo
Comment options

@Havret
Comment options

@pgarbo
Comment options

Answer selected by pgarbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants