Delete() public method

public Delete ( ) : void
return void
Ejemplo n.º 1
0
 public static bool TryDeleteQueue(string queueName, ILoggerContextSensitive log)
 {
     try
     {
         var queue = new PluginQueue(queueName);
         queue.Delete();
         return(true);
     }
     catch (Exception e)
     {
         log.Warn(LoggerContext.New(queueName), "Failed to delete queue {0}. Queue does not exist or no permissions".Fmt(queueName), e);
         return(false);
     }
 }
		public static bool TryDeleteQueue(string queueName, ILoggerContextSensitive log)
		{
			try
			{
				var queue = new PluginQueue(queueName);
				queue.Delete();
				return true;
			}
			catch (Exception e)
			{
				log.Warn(LoggerContext.New(queueName), "Failed to delete queue {0}. Queue does not exist or no permissions".Fmt(queueName), e);
				return false;
			}
		}