Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

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  |  QR code  |  clone
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();
  6.     return View();
  7. }
clone this paste RAW Paste Data