Exemplo n.º 1
0
 public async Task UpdateAsync(IEnumerable <IMigration> previousMigrations)
 {
     if (!previousMigrations.Any(x => x is Migration01_FromCqrs))
     {
         await rebuilder.RebuildAssetsAsync();
     }
 }
Exemplo n.º 2
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);
            }

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

            if (rebuildOptions.Indexes)
            {
                await populateGrainIndexes.UpdateAsync();
            }
        }
Exemplo n.º 3
0
        public async Task UpdateAsync(IEnumerable <IMigration> previousMigrations)
        {
            await rebuilder.RebuildConfigAsync();

            await rebuilder.RebuildContentAsync();

            await rebuilder.RebuildAssetsAsync();
        }
Exemplo n.º 4
0
 public Task UpdateAsync()
 {
     return(rebuilder.RebuildAssetsAsync());
 }