Skip to content

Instantly share code, notes, and snippets.

@anujb
Created December 27, 2011 16:35
Show Gist options
  • Save anujb/1524277 to your computer and use it in GitHub Desktop.
Save anujb/1524277 to your computer and use it in GitHub Desktop.
Background HttpServer
public override void DidEnterBackground(UIApplication application)
{
Console.WriteLine("Entered Background State...");
var taskId = UIApplication.SharedApplication.BeginBackgroundTask(() => { });
Thread task = new Thread(new ThreadStart(() => {
RegisterBackgroundHttpServer(application, taskId);
}));
task.Start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment