public async Task RunAsync(CancellationToken ct)
        {
            if (rebuildOptions.Apps)
            {
                await rebuilder.RebuildAppsAsync(ct);
            }

            if (rebuildOptions.Schemas)
            {
                await rebuilder.RebuildSchemasAsync(ct);
            }

            if (rebuildOptions.Rules)
            {
                await rebuilder.RebuildRulesAsync(ct);
            }

            if (rebuildOptions.Assets)
            {
                await rebuilder.RebuildAssetsAsync(ct);

                await rebuilder.RebuildAssetFoldersAsync(ct);
            }

            if (rebuildOptions.Contents)
            {
                await rebuilder.RebuildContentAsync(ct);
            }

            if (rebuildOptions.Indexes)
            {
                await populateGrainIndexes.UpdateAsync();
            }
        }
        public async Task UpdateAsync()
        {
            await rebuilder.RebuildAppsAsync();

            await rebuilder.RebuildSchemasAsync();

            await rebuilder.RebuildRulesAsync();

            await rebuilder.RebuildContentAsync();

            await rebuilder.RebuildAssetsAsync();
        }
Exemple #3
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);
        }
Exemple #4
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);
            }
        }
Exemple #5
0
 public Task UpdateAsync(
     CancellationToken ct)
 {
     return(rebuilder.RebuildRulesAsync(rebuildOptions.BatchSize, ct));
 }