public void Pause() { browser.FoundService -= ServiceResolved; browser.Stop(); while (createdInterfaces.Values.Count > 0) { OnInterfaceDisconnect(createdInterfaces.Values.First()); } Logger.Debug("Service discovery stopped"); }
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 void OnAppStop() { serviceBrowser?.Stop(); }
public void StopDomainSearch() { Debug.WriteLine($"{nameof(StopDomainSearch)}: {nameof(netServiceBrowser)}.Stop()"); netServiceBrowser.Stop(); }