Пример #1
0
 public static async Task <Result <ImageSource> > DownloadBitmapImageResultAsync(this MakoClient client, string url)
 {
     return(await(await client.GetMakoHttpClient(MakoApiKind.ImageApi).DownloadAsIRandomAccessStreamAsync(url))
            .BindAsync(async m => (ImageSource)await m.GetBitmapImageAsync(true)));
 }
Пример #2
0
 public async void Receive(LoginCompletedMessage message)
 {
     DownloadManager = new DownloadManager <ObservableDownloadTask>(AppSetting.MaxDownloadTaskConcurrencyLevel, MakoClient.GetMakoHttpClient(MakoApiKind.ImageApi));
     await AppContext.RestoreHistories();
 }