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))); }
public async void Receive(LoginCompletedMessage message) { DownloadManager = new DownloadManager <ObservableDownloadTask>(AppSetting.MaxDownloadTaskConcurrencyLevel, MakoClient.GetMakoHttpClient(MakoApiKind.ImageApi)); await AppContext.RestoreHistories(); }