2 implementations of IMigration
aspire (1)
Migrations\TypeScriptAppHostMigration.cs (1)
27internal sealed class TypeScriptAppHostMigration : IMigration
Aspire.Cli.Tests (1)
TestServices\TestMigration.cs (1)
14internal sealed class TestMigration(string id, int order, MigrationDescriptor? descriptor, bool throwOnDetect = false) : IMigration
18 references to IMigration
aspire (13)
Commands\UpdateCommand.cs (6)
41private readonly IEnumerable<IMigration> _migrations; 74IEnumerable<IMigration> migrations, 457/// After a successful project update, detects pending migrations from the <see cref="IMigration"/> 459/// the migrations are applied in <see cref="IMigration.Order"/> after an optional confirmation; 469var pending = new List<(IMigration Migration, MigrationDescriptor Descriptor)>(); 470foreach (var migration in _migrations.OrderBy(m => m.Order))
Migrations\MigrationDescriptor.cs (1)
9/// Describes a pending migration detected by <see cref="IMigration.DetectAsync"/>. The same
Program.cs (1)
673builder.Services.AddSingleton<IMigration, TypeScriptAppHostMigration>();
Utils\EnvironmentChecker\PendingMigrationsCheck.cs (5)
11/// Surfaces a non-blocking <c>aspire doctor</c> warning for each <see cref="IMigration"/> that 16/// <see cref="IMigration.DetectAsync(MigrationContext, CancellationToken)"/> detection that <c>aspire update --migrate</c> uses to apply changes, 23private readonly IEnumerable<IMigration> _migrations; 27IEnumerable<IMigration> migrations, 44foreach (var migration in _migrations.OrderBy(m => m.Order))
Aspire.Cli.Tests (5)
Commands\UpdateCommandTests.cs (3)
997services.AddSingleton<IMigration>(pendingMigration); 1111IMigration migration) 1155services.AddSingleton<IMigration>(migration);
TestServices\TestMigration.cs (1)
9/// A configurable <see cref="IMigration"/> for tests: detection returns the supplied
Utils\CliTestHelper.cs (1)
317services.AddSingleton<IMigration, TypeScriptAppHostMigration>();