These are chat archives for christopherread/Obvs

14th
Dec 2016
Simon McConnell
@Unthred
Dec 14 2016 08:41
@inter8ection So I am using the latest with the bug fix you made and indeed it does not create so many channels etc......however the number of channels and connections never go down. Can I check with you that I am not doing something moronic?
@inter8ection I configure a servicebus like so
var ServiceBus = Obvs.ServiceBus.Configure()
.WithRabbitMQEndpoints<IFilterBaseMessage>()
.Named(typeof(FilterBroadcaster).Name)
.ConnectToBroker("amqp://localhost")
.SerializedAsJson()
.AsClient()
.Create();
@inter8ection and that serviceBus I dont dispose of until the app quits..... I then use it like await ServiceBus.SendAsync(new FilterAddedCommand { Filter = filter }).ConfigureAwait(false);
but everytime I sendAsync to it it creates a new connection and channel.....I am concerned that it will eventually run out of resources