Example #1
0
        } // End Function TestPost

        public static async void TestGetStream()
        {
            Dictionary <string, string> headers = new Dictionary <string, string>()
            {
                { "param1", "1" }
                , { "param2", "2" }
            };

            await WebClientHelper.GetStream <string>("", headers);
        } // End Function TestGetStream
Example #2
0
        } // End Function TestGetStream

        public static async Task <T> TestPostStream <T>(string requestUri)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>()
            {
                { "param1", "1" }
                , { "param2", "2" }
            };

            System.Collections.Generic.Dictionary <string, string> head = new Dictionary <string, string>();
            head.Add("Authorization", "TOKEN");

            return(await WebClientHelper.PostStream <T>(requestUri, parameters, head));
        } // End Function TestPostStream