public void Dispose() { if (handle != IntPtr.Zero) { lock (this) { avahi_client_free (handle); handle = IntPtr.Zero; avahi_simple_poll_quit (spoll); Monitor.Wait (this); avahi_simple_poll_free (spoll); } } }
public void Dispose() { if (client != null) { client.Dispose(); client = null; } if (browser != null) { browser.Dispose(); browser = null; } }