Esempio n. 1
0
 public void asyncHello(string name, IHttpContext context)
 {
     context.Async();
     Task.Run(() =>
     {
         Console.WriteLine("sleep ...");
         System.Threading.Thread.Sleep(5000);
         context.Result(string.Format("[{0}] hello {1}", DateTime.Now, name));
     });
 }