I am writing a wrapper around EasyNetQ to publish messages to RabbitMQ. There are large number of messages that needs to be published. Should I use using pattern to publish message using IBus or should I declare IBus type var as a class level static var and dispose when application ends?
using (IBus bus = RabbitHutch.CreateBus(rabbitMQConnectionString))
{
bus.publish("ss");
}
Thanks