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."); }
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."); }