예제 #1
0
        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();
            }
        }
예제 #2
0
        public async Task UpdateAsync()
        {
            await rebuilder.RebuildConfigAsync();

            await rebuilder.RebuildContentAsync();

            await rebuilder.RebuildAssetsAsync();
        }
예제 #3
0
        public async Task UpdateAsync()
        {
            await rebuilder.RebuildAppsAsync();

            await rebuilder.RebuildSchemasAsync();

            await rebuilder.RebuildRulesAsync();

            await rebuilder.RebuildContentAsync();

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