internal void ReplayConnect(string hostName, Stream replayStream, CancellationToken cancellationToken) { CheckDisposed(); if (hostName == null) { throw new ArgumentNullException("hostName"); } if (replayStream == null) { throw new ArgumentNullException("replayStream"); } host = hostName; engine.Connect(new ImapStream(replayStream, logger), cancellationToken); if (engine.CapabilitiesVersion == 0) { engine.QueryCapabilities(cancellationToken); } }