2 implementations of IMigration
aspire (1)
Migrations\TypeScriptAppHostMigration.cs (1)
27
internal sealed class TypeScriptAppHostMigration :
IMigration
Aspire.Cli.Tests (1)
TestServices\TestMigration.cs (1)
14
internal sealed class TestMigration(string id, int order, MigrationDescriptor? descriptor, bool throwOnDetect = false) :
IMigration
18 references to IMigration
aspire (13)
Commands\UpdateCommand.cs (6)
41
private readonly IEnumerable<
IMigration
> _migrations;
74
IEnumerable<
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;
469
var pending = new List<(
IMigration
Migration, MigrationDescriptor Descriptor)>();
470
foreach (
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)
673
builder.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,
23
private readonly IEnumerable<
IMigration
> _migrations;
27
IEnumerable<
IMigration
> migrations,
44
foreach (
var
migration in _migrations.OrderBy(m => m.Order))
Aspire.Cli.Tests (5)
Commands\UpdateCommandTests.cs (3)
997
services.AddSingleton<
IMigration
>(pendingMigration);
1111
IMigration
migration)
1155
services.AddSingleton<
IMigration
>(migration);
TestServices\TestMigration.cs (1)
9
/// A configurable <see cref="
IMigration
"/> for tests: detection returns the supplied
Utils\CliTestHelper.cs (1)
317
services.AddSingleton<
IMigration
, TypeScriptAppHostMigration>();