protected virtual void Dispose(bool disposing) { if (disposing) { Stop(); root_device.Dispose(); root_device = null; if (description_server != null) { description_server.Dispose(); ssdp_server.Dispose(); } } }
protected virtual void Dispose(bool disposing) { if (IsDisposed) { return; } if (disposing) { Stop(); root.Dispose(); description_server.Dispose(); ssdp_server.Dispose(); } root = null; }