コード例 #1
0
ファイル: SmtpServer.cs プロジェクト: Snuk/simple.mailserver
        public SmtpServer()
        {
            Bindings = new ConcurrentBag<PortListener>();
            Connections = new ConcurrentDictionary<EndPoint, SmtpConnection>();
            Configuration = new SmtpServerConfiguration();
            Watchdog = new IdleConnectionDisconnectWatchdog<SmtpServer>(this);

            WatchForConfigurationChange();
        }
コード例 #2
0
 private static SmtpServerConfiguration CreateWithConfigurationChangedEvent(Action onChangedDelegate)
 {
     var config = new SmtpServerConfiguration();
     config.ConfigurationChanged += c => onChangedDelegate();
     return config;
 }