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))); }
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(); }