public static void ReleaseResources(RabbitResourceHolder resourceHolder) { if (resourceHolder == null || resourceHolder.SynchronizedWithTransaction) { return; } RabbitUtils.CloseChannel(resourceHolder.GetChannel()); RabbitUtils.CloseConnection(resourceHolder.GetConnection()); }
public IModel GetChannel(RabbitResourceHolder holder) { return(holder.GetChannel()); }