Is there any way to publish message with specified queue name in IPublishEndpoint without configure the queue name in startup class?
e.g.: I have this call and i want to pass the queue name inside it
await _publishEndpoint.Publish<SendMassege>(new { Body = message.Body });
You don’t publish to queues, you send to queues.
You can get a send endpoint from the ConsumeContext or IBus by calling GetSendEndpoint with a URI specifying the queue name, such as queue:name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With