示例#1
0
        public void Keep(string name, bool isDefault, IMailboxProvider mailboxProvider)
        {
            var info = new MailboxProviderInfo(name, mailboxProvider);

            _mailboxProviderInfos[name] = info;

            if (_defaultProvider == null || isDefault)
            {
                _defaultProvider = info;
            }
        }
 public DefaultMailboxProviderKeeper()
 {
     mailboxProviderInfos = new Dictionary <string, MailboxProviderInfo>();
     defaultProvider      = null;
 }