public static Task AddTileTaskAsync(this IBandTileManager manager, BandTile tile)
        {
            var tcs = new TaskCompletionSource <object> ();

            manager.AddTileAsync(tile, tcs.AttachCompletionHandler());
            return(tcs.Task);
        }
Example #2
0
 public static async Task <bool> AddTileTaskAsync(this IBandTileManager manager, Activity activity, BandTile tile)
 {
     return((bool)await manager.AddTileAsync(activity, tile).AsTask());
 }