pardahlman / RawRabbit

A modern .NET framework for communication over RabbitMq
MIT License
747 stars 144 forks source link

How to publish to queue with name suffix #390

Closed mersadk closed 5 years ago

mersadk commented 5 years ago

I'm subscribing to queue and specifying name suffix for queue name.

_busClient.SubscribeAsync<ToCrawlQueueMessage>(
    async (message, context) =>
    {
        // Execute code
    },
    ctx =>
    {
        ctx.WithQueue(q => q.WithNameSuffix(shopSlug));
    }
);

How can I add this suffix to queue name while publishing message?

pardahlman commented 5 years ago

Hi @mersadk - In RabbitMQ, messages are published to exchanges not queues - consider checking the official tutorial for basic concepts 👍