MonoMobile.Views.HttpDebug.Start C# (CSharp) Method

Start() static public method

static public Start ( ) : void
return void
		static public void Start()
		{
			handlerThread = new Thread(HttpServer);
			handlerThread.Start();
		}
		

Usage Example

        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            HttpDebug.Start();

            MonoMobileApplication.NavigationController = new NavigationController();
            MonoMobileApplication.Window = new UIWindow(UIScreen.MainScreen.Bounds);

            MonoMobileApplication.Window.AddSubview(MonoMobileApplication.NavigationController.View);
            MonoMobileApplication.Window.MakeKeyAndVisible();

            MonoMobileApplication.NavigationController.View.Alpha = 0.0f;

#if DEBUG
            var thread = new System.Threading.Thread(() =>
            {
                using (NSAutoreleasePool pool = new NSAutoreleasePool())
                {
                    InvokeOnMainThread(() => { Startup(); });
                }
            });

            thread.Start();
#else
            InvokeOnMainThread(() => { Startup(); });
#endif
            return(true);
        }