Skip to content

Commit

Permalink
[框架升级]:弃用app.UseMvcWithDefaultRouteAndArea
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamXu96 committed Jun 8, 2020
1 parent a17f418 commit 839e744
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Identity Service API");
});
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}
2 changes: 1 addition & 1 deletion MicroServices/Business/Business.Host/BusinessHostModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex

app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();

AsyncHelper.RunSync(async () =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public override void OnApplicationInitialization(ApplicationInitializationContex
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Tenant Service API");
});
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

0 comments on commit 839e744

Please sign in to comment.