Beispiel #1
0
        static void WebApiCaller()
        {
            const string controller = "test";

            var result1 = _webApiCaller.Get(controller, "get");
            var result2 = _webApiCaller.Get <IList <string> >(controller, "getlist");
            var result3 = _webApiCaller.Get <string>(controller, "get", new Dictionary <string, object> {
                { "index", 1 }
            });
            var result4 = _webApiCaller.Post <IList <string>, IList <string> >(controller, "setList", new List <string> {
                "Brian Korzynski", "Jennie Booth", "Ondrej Balas"
            });
        }
Beispiel #2
0
 public string Get()
 {
     return(_caller.Get(Controller, "Get"));
 }