Esempio n. 1
0
 public static IAsyncOperation <RenameInfo> FetchAsync(GalleryInfo galleryInfo)
 {
     return(AsyncInfo.Run(async token =>
     {
         var r = new RenameInfo(galleryInfo);
         var u = r.RefreshAsync();
         token.Register(u.Cancel);
         await u;
         token.ThrowIfCancellationRequested();
         return r;
     }));
 }
Esempio n. 2
0
 public static IAsyncOperation <RenameInfo> FetchRenameInfoAsync(this Gallery gallery)
 => RenameInfo.FetchAsync(gallery);