public async Task EnqueueAsync(IMobileServiceFileOperation operation) { OperationsInfo operationsInfo = this.operationsInfo.Value; var operationItem = new FileOperationItem { FileId = operation.FileId, Id = operation.Id, Kind = operation.Kind, Sequence = Interlocked.Increment(ref operationsInfo.Sequence) }; await this.store.UpsertAsync(FileOperationTableName, new[] { operationItem.ToJsonObject() }, ignoreMissingColumns : false); Interlocked.Increment(ref operationsInfo.Count); }
public async Task EnqueueAsync(IMobileServiceFileOperation operation) { OperationsInfo operationsInfo = this.operationsInfo.Value; var operationItem = new FileOperationItem { FileId = operation.FileId, Id = operation.Id, Kind = operation.Kind, Sequence = Interlocked.Increment(ref operationsInfo.Sequence) }; await this.store.UpsertAsync(FileOperationTableName, new[] { operationItem.ToJsonObject() }, ignoreMissingColumns: false); Interlocked.Increment(ref operationsInfo.Count); }