Last active
January 12, 2016 16:07
-
-
Save BenjaminAbt/fd24d683d4cd75257e82 to your computer and use it in GitHub Desktop.
Get all bands from Microsoft Band SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find all Bands | |
IBandInfo[ ] allBands = await BandClientManager.Instance.GetBandsAsync(); | |
if( !allBands.Any() ) | |
{ | |
throw new NoBandFoundException(); | |
} | |
// Use first Band | |
IBandInfo bandInfo = allBands.First(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment