Skip to content

Instantly share code, notes, and snippets.

public static class WebApplicationExtensions
{
public static async Task PerformDataMigration(this WebApplication app)
{
var service = app.Services.GetRequiredService<IDataMigratorService>();
await service.MigrateData();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment