Esempio n. 1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="options">The SMTP server options.</param>
 /// <param name="serviceProvider">The service provider to use when resolving services.</param>
 public SmtpServer(ISmtpServerOptions options, IServiceProvider serviceProvider)
 {
     _options                 = options;
     _serviceProvider         = serviceProvider;
     _sessions                = new SmtpSessionManager(this);
     _endpointListenerFactory = serviceProvider.GetServiceOrDefault(EndpointListenerFactory.Default);
 }