예제 #1
0
        public async Task DeleteFileAsync(MobileServiceFile file)
        {
            var operation = new DeleteMobileServiceFileOperation(Guid.NewGuid().ToString(), file.Id);

            await QueueOperationAsync(operation);

            NotifyFileOperationCompletion(file, FileOperationKind.Delete, FileOperationSource.Local);
        }
 private bool ValidateOperation(DeleteMobileServiceFileOperation operation)
 {
     return(operation.FileId == this.inputFile.Id &&
            operation.Kind == FileOperationKind.Delete &&
            operation.State == FileOperationState.Pending);
 }