Created
December 27, 2011 16:35
-
-
Save anujb/1524277 to your computer and use it in GitHub Desktop.
Background HttpServer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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