protected void UploadTapped(IUploadItem item) { if (item.State != TransferStates.SUCCESSFUL) { return; } const string key = "ItemToEdit"; StateHelper.SessionState[key] = item.Response; navigationService.NavigateTo(PageKeyHolder.EditItemPageKey, key); }
public async Task Enqueqe(IUploadItem item) { var name = item.Name; Debug.WriteLine($"Enqueqed upload {name} at {DateTime.Now}"); Uploads.Add(item); await sem.WaitAsync(); Debug.WriteLine($"Started upload {name} at {DateTime.Now}"); await item.Upload(); Debug.WriteLine($"Finished upload {name} at {DateTime.Now}"); sem.Release(); }
public UploadItemStatus(IUploadItem source, UploadItemStatsCode statusCode) { Source = source; StatusCode = statusCode; }
public UploadItemStatus(IUploadItem source, Exception otherException) { Source = source; StatusCode = UploadItemStatsCode.GeneralException; CloudServiceException = otherException; }
public UploadItemStatus(IUploadItem source, IOException ioException) { Source = source; StatusCode = UploadItemStatsCode.IOException; CloudServiceException = ioException; }
public UploadItemStatus(IUploadItem source, AmazonS3Exception cloudServiceException) { Source = source; StatusCode = UploadItemStatsCode.CloudServiceException; CloudServiceException = cloudServiceException; }