Exemple #1
0
        public override async Task DisconnectAsync()
        {
            await SetStateAsync(DeviceState.Disconnecting, false);

            await _infraredDeviceManager.DisconnectDevice(this);

            await SetStateAsync(DeviceState.Disconnected, false);
        }
Exemple #2
0
        public override async Task DisconnectAsync()
        {
            DeviceState = DeviceState.Disconnecting;

            await _infraredDeviceManager.DisconnectDevice(this);

            DeviceState = DeviceState.Disconnected;
        }