Ejemplo n.º 1
0
        public void Stop()
        {
            log.Debug("Stopping service");
            try
            {
                Model.QueueDelete(EndpointQueue);
                Model.ExchangeDelete(Exchange);
                Model.Close();
            }
            catch
            {
                log.Info("Could not delete the AD queues");
            }
            try
            {
                GuestEmitter.EatQueues();
            }
            catch
            {
                log.Info("Could not delete the guest queues");
            }

            log.Debug("Service stopped");
        }