Browse Source

Change UseMvcWithDefaultRouteAndArea with UseConfiguredEndpoints

pull/3947/head
Halil İbrahim Kalkan 6 years ago
parent
commit
d146f232ab
  1. 2
      docs/cs/Getting-Started-AspNetCore-Application.md
  2. 2
      docs/en/Getting-Started-AspNetCore-Application.md
  3. 2
      docs/en/Samples/Microservice-Demo.md
  4. 2
      docs/zh-Hans/Samples/Microservice-Demo.md
  5. 2
      framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcTestModule.cs
  6. 2
      framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/AbpAspNetCoreMvcUiBootstrapDemoModule.cs
  7. 2
      framework/test/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo/AbpAspNetCoreMvcUiThemeBasicDemoModule.cs
  8. 2
      framework/test/Volo.Abp.AspNetCore.Mvc.Versioning.Tests/Volo/Abp/AspNetCore/Mvc/Versioning/AbpAspNetCoreMvcVersioningTestModule.cs
  9. 2
      framework/test/Volo.Abp.AspNetCore.Serilog.Tests/Volo/Abp/AspNetCore/App/AbpSerilogTestModule.cs
  10. 2
      modules/blogging/app/Volo.BloggingTestApp/BloggingTestAppModule.cs
  11. 2
      modules/client-simulation/demo/Volo.ClientSimulation.Demo/ClientSimulationDemoModule.cs
  12. 2
      modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs
  13. 2
      samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs
  14. 2
      samples/MicroserviceDemo/applications/BackendAdminApp.Host/BackendAdminAppHostModule.cs
  15. 2
      samples/MicroserviceDemo/applications/PublicWebSite.Host/PublicWebSiteHostModule.cs
  16. 2
      samples/MicroserviceDemo/gateways/BackendAdminAppGateway.Host/BackendAdminAppGatewayHostModule.cs
  17. 2
      samples/MicroserviceDemo/gateways/InternalGateway.Host/InternalGatewayHostModule.cs
  18. 2
      samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGatewayHostModule.cs
  19. 2
      samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs
  20. 2
      samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs
  21. 2
      samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs
  22. 2
      samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs
  23. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs
  24. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/MyProjectNameHttpApiHostModule.cs
  25. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.IdentityServer/MyProjectNameIdentityServerModule.cs
  26. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebModule.cs
  27. 2
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs
  28. 2
      templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/MyProjectNameWebTestModule.cs
  29. 2
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs
  30. 2
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/MyProjectNameIdentityServerModule.cs
  31. 2
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebHostModule.cs
  32. 2
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/MyProjectNameWebUnifiedModule.cs

2
docs/cs/Getting-Started-AspNetCore-Application.md

@ -57,7 +57,7 @@ namespace BasicAspNetCoreApplication
app.UseStaticFiles();
app.UseRouting();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
docs/en/Getting-Started-AspNetCore-Application.md

@ -57,7 +57,7 @@ namespace BasicAspNetCoreApplication
app.UseStaticFiles();
app.UseRouting();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
docs/en/Samples/Microservice-Demo.md

@ -552,7 +552,7 @@ app.MapWhen(ctx => ctx.Request.Path.ToString().StartsWith("/api/abp/") ||
ctx.Request.Path.ToString().StartsWith("/Abp/"),
app2 =>
{
app2.UseMvcWithDefaultRouteAndArea();
app2.UseConfiguredEndpoints();
});
app.UseOcelot().Wait();

2
docs/zh-Hans/Samples/Microservice-Demo.md

@ -553,7 +553,7 @@ app.MapWhen(ctx => ctx.Request.Path.ToString().StartsWith("/api/abp/") ||
ctx.Request.Path.ToString().StartsWith("/Abp/"),
app2 =>
{
app2.UseMvcWithDefaultRouteAndArea();
app2.UseConfiguredEndpoints();
});
app.UseOcelot().Wait();

2
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/AbpAspNetCoreMvcTestModule.cs

@ -95,7 +95,7 @@ namespace Volo.Abp.AspNetCore.Mvc
app.UseAuthorization();
app.UseAuditing();
app.UseUnitOfWork();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
framework/test/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo/AbpAspNetCoreMvcUiBootstrapDemoModule.cs

@ -24,7 +24,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.Demo
app.UseRouting();
app.UseVirtualFiles();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
framework/test/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo/AbpAspNetCoreMvcUiThemeBasicDemoModule.cs

@ -57,7 +57,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo
app.UseVirtualFiles();
app.UseRouting();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
framework/test/Volo.Abp.AspNetCore.Mvc.Versioning.Tests/Volo/Abp/AspNetCore/Mvc/Versioning/AbpAspNetCoreMvcVersioningTestModule.cs

@ -67,7 +67,7 @@ namespace Volo.Abp.AspNetCore.Mvc.Versioning
{
var app = context.GetApplicationBuilder();
app.UseRouting();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
framework/test/Volo.Abp.AspNetCore.Serilog.Tests/Volo/Abp/AspNetCore/App/AbpSerilogTestModule.cs

@ -33,7 +33,7 @@ namespace Volo.Abp.AspNetCore.App
app.UseMultiTenancy();
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
modules/blogging/app/Volo.BloggingTestApp/BloggingTestAppModule.cs

@ -158,7 +158,7 @@ namespace Volo.BloggingTestApp
app.UseRequestLocalization(app.ApplicationServices.GetRequiredService<IOptions<RequestLocalizationOptions>>().Value);
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
using (var scope = context.ServiceProvider.CreateScope())

2
modules/client-simulation/demo/Volo.ClientSimulation.Demo/ClientSimulationDemoModule.cs

@ -42,7 +42,7 @@ namespace Volo.ClientSimulation.Demo
app.UseVirtualFiles();
app.UseRouting();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs

@ -167,7 +167,7 @@ namespace VoloDocs.Web
//app.UseMiddleware<GlobalExceptionHandlerMiddleware>();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
using (var scope = context.ServiceProvider.CreateScope())
{

2
samples/MicroserviceDemo/applications/AuthServer.Host/AuthServerHostModule.cs

@ -102,7 +102,7 @@ namespace AuthServer.Host
app.UseIdentityServer();
app.UseAbpRequestLocalization();
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
//TODO: Problem on a clustered environment
AsyncHelper.RunSync(async () =>

2
samples/MicroserviceDemo/applications/BackendAdminApp.Host/BackendAdminAppHostModule.cs

@ -130,7 +130,7 @@ namespace BackendAdminApp.Host
{
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Backend Admin Application API");
});
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
samples/MicroserviceDemo/applications/PublicWebSite.Host/PublicWebSiteHostModule.cs

@ -103,7 +103,7 @@ namespace PublicWebSite.Host
}
app.UseAuthorization();
app.UseAbpRequestLocalization();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
samples/MicroserviceDemo/gateways/BackendAdminAppGateway.Host/BackendAdminAppGatewayHostModule.cs

@ -141,7 +141,7 @@ namespace BackendAdminAppGateway.Host
app2 =>
{
app2.UseRouting();
app2.UseMvcWithDefaultRouteAndArea();
app2.UseConfiguredEndpoints();
}
);

2
samples/MicroserviceDemo/gateways/InternalGateway.Host/InternalGatewayHostModule.cs

@ -122,7 +122,7 @@ namespace InternalGateway.Host
app2 =>
{
app2.UseRouting();
app2.UseMvcWithDefaultRouteAndArea();
app2.UseConfiguredEndpoints();
}
);

2
samples/MicroserviceDemo/gateways/PublicWebSiteGateway.Host/PublicWebSiteGatewayHostModule.cs

@ -116,7 +116,7 @@ namespace PublicWebSiteGateway.Host
app2 =>
{
app2.UseRouting();
app2.UseMvcWithDefaultRouteAndArea();
app2.UseConfiguredEndpoints();
}
);

2
samples/MicroserviceDemo/microservices/BloggingService.Host/BloggingServiceHostModule.cs

@ -145,7 +145,7 @@ namespace BloggingService.Host
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Blogging Service API");
});
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
//TODO: Problem on a clustered environment
AsyncHelper.RunSync(async () =>

2
samples/MicroserviceDemo/microservices/IdentityService.Host/IdentityServiceHostModule.cs

@ -126,7 +126,7 @@ namespace IdentityService.Host
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Identity Service API");
});
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
samples/MicroserviceDemo/microservices/ProductService.Host/ProductServiceHostModule.cs

@ -129,7 +129,7 @@ namespace ProductService.Host
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Product Service API");
});
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
//TODO: Problem on a clustered environment
AsyncHelper.RunSync(async () =>

2
samples/MicroserviceDemo/microservices/TenantManagementService.Host/TenantManagementServiceHostModule.cs

@ -130,7 +130,7 @@ namespace TenantManagementService.Host
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Tenant Management Service API");
});
app.UseAuditing();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs

@ -183,7 +183,7 @@ namespace MyCompanyName.MyProjectName
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/MyProjectNameHttpApiHostModule.cs

@ -188,7 +188,7 @@ namespace MyCompanyName.MyProjectName
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.IdentityServer/MyProjectNameIdentityServerModule.cs

@ -164,7 +164,7 @@ namespace MyCompanyName.MyProjectName
app.UseAbpRequestLocalization();
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebModule.cs

@ -246,7 +246,7 @@ namespace MyCompanyName.MyProjectName.Web
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs

@ -221,7 +221,7 @@ namespace MyCompanyName.MyProjectName.Web
});
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/MyProjectNameWebTestModule.cs

@ -107,7 +107,7 @@ namespace MyCompanyName.MyProjectName
}
});
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs

@ -171,7 +171,7 @@ namespace MyCompanyName.MyProjectName
});
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/MyProjectNameIdentityServerModule.cs

@ -194,7 +194,7 @@ namespace MyCompanyName.MyProjectName
});
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
SeedData(context);
}

2
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Host/MyProjectNameWebHostModule.cs

@ -253,7 +253,7 @@ namespace MyCompanyName.MyProjectName
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
}
}
}

2
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/MyProjectNameWebUnifiedModule.cs

@ -142,7 +142,7 @@ namespace MyCompanyName.MyProjectName
app.UseAbpRequestLocalization();
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseMvcWithDefaultRouteAndArea();
app.UseConfiguredEndpoints();
using (var scope = context.ServiceProvider.CreateScope())
{

Loading…
Cancel
Save