Пример #1
0
        public static void ReleaseResources(RabbitResourceHolder resourceHolder)
        {
            if (resourceHolder == null || resourceHolder.SynchronizedWithTransaction)
            {
                return;
            }

            RabbitUtils.CloseChannel(resourceHolder.GetChannel());
            RabbitUtils.CloseConnection(resourceHolder.GetConnection());
        }
Пример #2
0
 public IConnection GetConnection(RabbitResourceHolder holder)
 {
     return(holder.GetConnection());
 }