Beispiel #1
0
 public SmtpServer(ServerSettings settings)
 {
     this.Settings    = settings;
     this.connections = new List <Connection>();
     this.plugins     = new Dictionary <Type, Object>();
     this.Logger      = new DefaultLogger();
 }
Beispiel #2
0
 public void AddLogger(ISmtpServerLogger logger)
 {
     this.Logger = logger ?? throw new ArgumentNullException();
 }