public void Dispose() { if (_client != null) { _client.DeviceDiscovered -= _client_DeviceDiscovered; _client.DeviceLost -= _client_DeviceLost; _client.StopDeviceDiscovery(); _client.Dispose(); } }
public void Dispose() { _lc?.Dispose(); GC.SuppressFinalize(this); }