/// <summary>
 /// 
 /// </summary>        
 public IMAPConnectionWorker(IMAPAsyncClient client, int id)
 {
     _client = client;
     _workerID = id;
     _logger = new WorkerLogger(id);
     _config = _client.Config;
     _conn = new IMAPConnection(_config, _logger);
     _shuttingDown = false;
     _loggedIn = false;
     _processingRequest = false;
 }
 /// <summary>
 /// Create new IMAPConnection object specifying the IMAPConfig to use
 /// </summary>
 public IMAPConnection(IMAPConfig config, WorkerLogger logger)
 {
     _config = config;
     _useSSL = _config.UseSSL;
     _serverHost = _config.Host;
     _serverPort = _useSSL ? IMAP_DEFAULT_SSL_PORT : IMAP_DEFAULT_PORT;
     _username = _config.UserName;
     _password = _config.Password;
     _logger = logger;
 }