Esempio n. 1
0
 public Client (NetworkInterface networkInterface)
 {
     network_interface_info = NetworkInterfaceInfo.GetNetworkInterfaceInfo (networkInterface);
     service_cache = new ServiceCache (this);
     notify_listener = new NotifyListener (this);
     browsers = new Dictionary<string, Browser> ();
 }
Esempio n. 2
0
        public void Dispose ()
        {
            lock (mutex) {
                if (disposed) {
                    return;
                }

                notify_listener.Stop ();
                foreach (var browser in browsers.Values) {
                    browser.Dispose (false);
                }

                browsers.Clear ();
                service_cache.Dispose ();

                service_cache = null;
                notify_listener = null;
                browsers = null;

                disposed = true;
            }
        }
Esempio n. 3
0
 public Client()
 {
     service_cache = new ServiceCache (this);
     notify_listener = new NotifyListener (this);
     browsers = new Dictionary<string, Browser> ();
 }