private async void ShadowDriverDeviceWatcher_Added(DeviceWatcher sender, DeviceInformation args) { System.Diagnostics.Debug.WriteLine(args.Id); sender.Stop(); _shadowDevice = await CustomDevice.FromIdAsync(args.Id, DeviceAccessMode.ReadWrite, DeviceSharingMode.Shared); IsFilterReady = true; FilterReady?.Invoke(); }
public void StartFilterWatcher() { _shadowDevice.OpenDevice(); FilterReady?.Invoke(); }