Exemple #1
0
 public static void DeclareTransactional(RC.IModel channel, ILogger logger = null)
 {
     try
     {
         channel.TxSelect();
     }
     catch (IOException e)
     {
         logger?.LogDebug(e, "Error performing 'txSelect' on {channel}", channel);
         throw RabbitExceptionTranslator.ConvertRabbitAccessException(e);
     }
 }