public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            _browserDelegate = new BonjourBrowser();
            _browserDelegate.successCallback += () => {
                statusLabel.Text = "Calabash is running!";
                _browser.Stop();
            };

            _browser          = new NSNetServiceBrowser();
            _browser.Delegate = _browserDelegate;
            _browser.SearchForServices("_http._tcp.", "local.");
        }
예제 #2
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			_browserDelegate = new BonjourBrowser ();
			_browserDelegate.successCallback += ()=> {
				statusLabel.Text = "Calabash is running!";
				_browser.Stop();
			};

			_browser = new NSNetServiceBrowser ();
			_browser.Delegate = _browserDelegate;
			_browser.SearchForServices ("_http._tcp.", "local.");
		}