public void Dispose()
 {
     _factory?.Dispose();
     foreach (var channelPool in _channelPools.Values)
     {
         (channelPool.Value as IDisposable)?.Dispose();
     }
 }
Esempio n. 2
0
 public void Dispose()
 {
     _logger.LogDebug("Disposing Publisher");
     _channelFactory?.Dispose();
     (_topologyProvider as IDisposable)?.Dispose();
 }
 public void Dispose()
 {
     _channelFactory.Dispose();
     (_connectionFactory as IDisposable)?.Dispose();
     (_channelPoolFactory as IDisposable)?.Dispose();
 }