Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public Task UpdateAsync(
     CancellationToken ct)
 {
     return(rebuilder.RebuildSchemasAsync(rebuildOptions.BatchSize, ct));
 }