Пример #1
0
        public IrcClient(bool singleConnection = false)
        {
            SingleConnection = singleConnection;

            ReadConnection = new IrcConnection();

            if (singleConnection)
            {
                WriteConnection = ReadConnection;
            }
            else
            {
                WriteConnection = new IrcConnection();
            }
        }
Пример #2
0
 public IrcClient(IrcConnection readConnection, IrcConnection writeConnection)
 {
     SingleConnection = readConnection == writeConnection;
     ReadConnection   = readConnection;
     WriteConnection  = writeConnection;
 }