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
19 references to IMigration
aspire (13)
Commands\UpdateCommand.cs (6)
43
private readonly IEnumerable<
IMigration
> _migrations;
81
IEnumerable<
IMigration
> migrations,
560
/// After a successful project update, detects pending migrations from the <see cref="
IMigration
"/>
562
/// the migrations are applied in <see cref="
IMigration
.Order"/> after an optional confirmation;
572
var pending = new List<(
IMigration
Migration, MigrationDescriptor Descriptor)>();
573
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)
770
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 (6)
Commands\UpdateCommandTests.cs (4)
410
services.AddSingleton<
IMigration
>(migration);
1053
services.AddSingleton<
IMigration
>(pendingMigration);
1167
IMigration
migration)
1212
services.AddSingleton<
IMigration
>(migration);
TestServices\TestMigration.cs (1)
9
/// A configurable <see cref="
IMigration
"/> for tests: detection returns the supplied
Utils\CliTestHelper.cs (1)
353
services.AddSingleton<
IMigration
, TypeScriptAppHostMigration>();