예제 #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"
            });
        }
예제 #2
0
 public IList <string> SetList(IList <string> list)
 {
     return(_caller.Post <IList <string>, IList <string> >(Controller, "SetList", list));
 }