private void Updated(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.DeviceUpdatedEventArgs()
                {
                    Device = new Schema.WatcherDevice()
                    {
                        Id         = deviceInformationUpdate.Id,
                        Kind       = deviceInformationUpdate.Kind.ToString(),
                        Properties = deviceInformationUpdate.Properties.ToDictionary(pair => pair.Key, pair => pair.Value)
                    }
                };

                OnDeviceUpdated(args);
            }
        }
 protected virtual void OnDeviceUpdated(Events.DeviceUpdatedEventArgs e)
 {
     DeviceUpdated?.Invoke(this, e);
 }