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