private async Task <IDictionary <string, DocumentInfo> > BulkUpdateInternal(Action <IBulkUpdateBatch> updateCommandBuilder) { var unitOfWork = new BulkUpdateBatch(uriConstructor, parent.Settings.Serializer); updateCommandBuilder(unitOfWork); return(unitOfWork.IsEmpty ? new Dictionary <string, DocumentInfo>(0) : await unitOfWork.Execute(request => parent.RequestCouchDb(request))); }
private async Task<IDictionary<string, DocumentInfo>> BulkUpdateInternal(Action<IBulkUpdateBatch> updateCommandBuilder) { var unitOfWork = new BulkUpdateBatch(uriConstructor, parent.Settings.Serializer); updateCommandBuilder(unitOfWork); return unitOfWork.IsEmpty ? new Dictionary<string, DocumentInfo>(0) : await unitOfWork.Execute(request => parent.RequestCouchDb(request)); }