コード例 #1
0
        void BindSMTPServer()
        {
            _smtpServer.Stop();

            this._smtpServer.ListenIpAddress = this._serviceSettings.IP;
            this._smtpServer.ListenPort      = this._serviceSettings.Port;

            _smtpServer.Start();
        }
コード例 #2
0
 void BindSMTPServer()
 {
     _smtpServer.Stop();
     _smtpServer.Start(new EndpointDefinition(this._serviceSettings.IP, this._serviceSettings.Port));
 }