Пример #1
0
        public void Start()
        {
            Logger.Current = LogLevel.Developer;
            _connection.LogMessageReceived += (level, s) =>
            {
                Console.WriteLine("[{0}] {1}", level, s);
            };

            _connection.Configure(_config);
            _connection.ResponseReceived += OnResponseReceived;
            _connection.StatusChanged    += OnStatusChanged;


            IPEndPoint remoteEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 5056);

            _connection.Connect(remoteEndPoint, new Version(0, 1, 0), null);

            Thread receiveThread = new Thread(Receive);

            receiveThread.Start();
        }