コード例 #1
0
        public void TestAsync1()
        {
            Example c = new Example() { name = "Jack", age = 26 };
            PostGenericClass p = new PostGenericClass(uri);
            List<Task> tasks = new List<Task>();
            tasks.Add(Task.Run(() => p.PostAsync<Example>(c)));

        }
コード例 #2
0
 public void Test1()
 {
     Example c = new Example() { name = "Jack", age = 26 };
     PostGenericClass p = new PostGenericClass(uri);
     string resul = string.Empty;
     p.Post<Example>(c, ref resul);
     resul = resul.Replace(System.Environment.NewLine, string.Empty).Trim();
 }