private void StartDiscovery() { discoveryListener = new Listener(); discoveryListener.InstanceOnline += HandleInstanceOnline; discoveryListener.InstanceOffline += HandleInstanceOffline; discoveryListener.Listen(fingerprint); try { Broadcaster.Broadcast(Verbs.Online, fingerprint); } catch (SocketException ex) { //e.g. no network connection on Linux ShowMultiMinerRemotingError(ex); } }
private void StartDiscovery() { discoveryListener = new Listener(); discoveryListener.InstanceOnline += HandleInstanceOnline; discoveryListener.InstanceOffline += HandleInstanceOffline; discoveryListener.Listen(fingerprint); Broadcaster.Broadcast(Verbs.Online, fingerprint); }