Want more features on Pastebin? Sign Up, it's FREE!
Guest

How can I send the HTTP response back to the user but still do more things on the server after that

By: a guest on Feb 22nd, 2012  |  syntax: None  |  size: 0.13 KB  |  views: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public ActionResult DoSomething()
  2. {
  3.     Task t = new Task(()=>DoSomethingAsynchronously());
  4.     t.Start();
  5.  
  6.     return View();
  7. }
clone this paste RAW Paste Data