Exemplo n.º 1
0
 public void Handle(AccountRemovedLastStepMessage message)
 {
     _log.InfoFormat("Removing account {0}", message.AccountName);
     _collection.Remove(message.AccountName);
     if (_msmqTransport.RoutableTransportMode == RoutableTransportMode.OnDemand)
     {
         _msmqTransport.TryDeleteQueue(message.AccountName);
     }
 }
        public PluginCommandResponseMessage Execute(string args)
        {
            foreach (var account in _accountCollection)
            {
                if (!account.Profiles.Any())
                {
                    _msmqTransport.TryDeleteQueue(account.Name.Value);
                }

                _msmqTransport.TryDeleteUiQueue(account.Name.Value);
            }

            return(new PluginCommandResponseMessage {
                ResponseData = string.Empty, PluginCommandStatus = PluginCommandStatus.Succeed
            });
        }
 public void Handle(AccountRemovedLastStepMessage message)
 {
     _log.InfoFormat("Removing account {0}", message.AccountName);
     _collection.Remove(message.AccountName);
     _msmqTransport.TryDeleteQueue(message.AccountName);
 }