Пример #1
0
 //todo do I need to put async/await keywords here; what is the difference
 public Task <Picture> GetPictureAsync(string pictureFileName) =>
 Task.Factory.StartNew(() =>
                       new Picture(_bitmapService.CreateBitmapImage(
                                       _fileService.GetFileBytes(pictureFileName)), pictureFileName));