/// <summary>
 /// Create a new IMAPAsyncClient using the specified configuration and number of worker connections
 /// </summary>
 /// <param name="config"></param>
 /// <param name="numberWorkers"></param>
 public IMAPAsyncClient(IMAPConfig config, int numberWorkers)
 {
     _config = config;
     _connectionPool = new IMAPConnectionPool(this);
     _numConnections = numberWorkers;
     _dataManager = new DataManager(this);
     _mailboxManager = new IMAPMailboxManager(this);
     _requestManager = new IMAPRequestManager(this);
     _aggregator = new LoggerAggregator();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new IMAPAsyncClient using the specified configuration and number of worker connections
 /// </summary>
 /// <param name="config"></param>
 /// <param name="numberWorkers"></param>
 public IMAPAsyncClient(IMAPConfig config, int numberWorkers)
 {
     _config         = config;
     _connectionPool = new IMAPConnectionPool(this);
     _numConnections = numberWorkers;
     _dataManager    = new DataManager(this);
     _mailboxManager = new IMAPMailboxManager(this);
     _requestManager = new IMAPRequestManager(this);
     _aggregator     = new LoggerAggregator();
 }