Exemple #1
0
        private static void GetStream(string request)
        {
            var bws = new BinaryConnection();

            bws.Connect().Wait();

            bws.SendRequest(request).Wait();
            bws.StartListenStream();
        }
Exemple #2
0
        private static string GetData(string request)
        {
            var bws = new BinaryConnection();

            bws.Connect().Wait();

            bws.SendRequest(request).Wait();
            var response = bws.StartListen();

            return(response.Result);
        }