Exemple #1
0
        public static void ReleaseResources(RabbitResourceHolder resourceHolder)
        {
            if (resourceHolder == null || resourceHolder.SynchronizedWithTransaction)
            {
                return;
            }

            RabbitUtils.CloseChannel(resourceHolder.GetChannel());
            RabbitUtils.CloseConnection(resourceHolder.GetConnection());
        }
Exemple #2
0
 public RC.IModel GetChannel(RabbitResourceHolder holder)
 {
     return(holder.GetChannel());
 }