Beispiel #1
0
 public static Task <IList <IGattCharacteristic> > GetCharacteristicsAsync(this IGattService service, CancellationToken?cancelToken = null)
 => service
 .GetCharacteristics()
 .ToTask(cancelToken ?? CancellationToken.None);
Beispiel #2
0
 public static Task <IList <IGattCharacteristic> > GetCharacteristicsAsync(this IGattService service, CancellationToken cancelToken = default)
 => service
 .GetCharacteristics()
 .ToTask(cancelToken);