Skip to content

Instantly share code, notes, and snippets.

@olegoid
Created November 16, 2015 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olegoid/5ad5c530eac5fbca79c4 to your computer and use it in GitHub Desktop.
Save olegoid/5ad5c530eac5fbca79c4 to your computer and use it in GitHub Desktop.
using Foundation;
using UIKit;
namespace DebuggerIssue {
[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
public override UIWindow Window
{
get;
set;
}
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
UIDevice.CurrentDevice.BeginInvokeOnMainThread (async () => {
var client = new System.Net.Http.HttpClient ();
var result = await client.GetStringAsync ("http://xamarin.com");
});
return true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment