示例#1
0
文件: Light.cs 项目: treg/Lifx
 public async Task SetTemperatureAsync(Temperature temperature, CancellationToken cancellationToken)
 => await SetTemperatureAsync(temperature, DefaultDurationInMilliseconds, cancellationToken)
 .ConfigureAwait(false);
示例#2
0
文件: Light.cs 项目: treg/Lifx
 public async Task SetTemperatureAsync(Temperature temperature, uint durationInMilliseconds)
 => await SetTemperatureAsync(temperature, durationInMilliseconds, CancellationToken.None)
 .ConfigureAwait(false);
示例#3
0
文件: Light.cs 项目: treg/Lifx
 public async Task SetTemperatureAsync(Temperature temperature)
 => await SetTemperatureAsync(temperature, CancellationToken.None).ConfigureAwait(false);