public async Task UpdateAsync(CancellationToken ct) { await rebuilder.RebuildAppsAsync(rebuildOptions.BatchSize, ct); await rebuilder.RebuildSchemasAsync(rebuildOptions.BatchSize, ct); await rebuilder.RebuildRulesAsync(rebuildOptions.BatchSize, ct); await rebuilder.RebuildContentAsync(rebuildOptions.BatchSize, ct); await rebuilder.RebuildAssetsAsync(rebuildOptions.BatchSize, ct); await rebuilder.RebuildAssetFoldersAsync(rebuildOptions.BatchSize, ct); }
public async Task RunAsync(CancellationToken ct) { var batchSize = rebuildOptions.CalculateBatchSize(); if (rebuildOptions.Apps) { await rebuilder.RebuildAppsAsync(batchSize, ct); } if (rebuildOptions.Schemas) { await rebuilder.RebuildSchemasAsync(batchSize, ct); } if (rebuildOptions.Rules) { await rebuilder.RebuildRulesAsync(batchSize, ct); } if (rebuildOptions.Assets) { await rebuilder.RebuildAssetsAsync(batchSize, ct); await rebuilder.RebuildAssetFoldersAsync(batchSize, ct); } if (rebuildOptions.AssetFiles) { await rebuildFiles.RepairAsync(ct); } if (rebuildOptions.Contents) { await rebuilder.RebuildContentAsync(batchSize, ct); } if (rebuildOptions.Indexes) { await populateGrainIndexes.UpdateAsync(ct); } }
public Task UpdateAsync( CancellationToken ct) { return(rebuilder.RebuildSchemasAsync(rebuildOptions.BatchSize, ct)); }