コード例 #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);
     }
 }
コード例 #2
0
        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
            });
        }
コード例 #3
0
 public void Handle(AccountRemovedLastStepMessage message)
 {
     _log.InfoFormat("Removing account {0}", message.AccountName);
     _collection.Remove(message.AccountName);
     _msmqTransport.TryDeleteQueue(message.AccountName);
 }