コード例 #1
0
        public static Task <nuint> GetRemainingTileCapacityTaskAsync(this IBandTileManager manager)
        {
            var tcs = new TaskCompletionSource <nuint> ();

            manager.GetRemainingTileCapacityAsync(tcs.AttachCompletionHandler());
            return(tcs.Task);
        }
コード例 #2
0
 public static async Task <int> GetRemainingTileCapacityTaskAsync(this IBandTileManager manager)
 {
     return((int)await manager.GetRemainingTileCapacityAsync().AsTask());
 }