public IrcClient(bool singleConnection = false) { SingleConnection = singleConnection; ReadConnection = new IrcConnection(); if (singleConnection) { WriteConnection = ReadConnection; } else { WriteConnection = new IrcConnection(); } }
public IrcClient(IrcConnection readConnection, IrcConnection writeConnection) { SingleConnection = readConnection == writeConnection; ReadConnection = readConnection; WriteConnection = writeConnection; }