public async Task InitializeAsync() { _migrationRunner.MigrateUp(); await _bootstrapper.StartAsync(CancellationToken.None); await _readModelPopulator.PopulateAsync <Enrollments.EnrollmentReadModel>(CancellationToken.None); _logger.LogInformation($"loaded {_repository.Query().Count()} enrollments"); }
public async Task InitializeAsync() { await _eventFlowBootstapper.StartAsync(CancellationToken.None); await _readModelPopulator.PopulateAsync <SchoolReadModel>(CancellationToken.None); }