private void Removed(DeviceWatcher sender, DeviceInformationUpdate deviceInformationUpdate)
        {
            //if (await IsDeviceCompatible(deviceInformationUpdate.Id))
            //{
            // Protect against race condition if the task runs after the app stopped the deviceWatcher.
            if (sender == _deviceWatcher)
            {
                var args = new Events.DeviceRemovedEventArgs()
                {
                    Device = new Schema.WatcherDevice()
                    {
                        Id         = deviceInformationUpdate.Id,
                        Kind       = deviceInformationUpdate.Kind.ToString(),
                        Properties = deviceInformationUpdate.Properties.ToDictionary(pair => pair.Key, pair => pair.Value)
                    }
                };

                OnDeviceRemoved(args);
            }
        }
 protected virtual void OnDeviceRemoved(Events.DeviceRemovedEventArgs e)
 {
     DeviceRemoved?.Invoke(this, e);
 }