21 lines
548 B
C#
21 lines
548 B
C#
using IM.ASPNETCore;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using IM.InitCommon.Management;
|
|
|
|
namespace IM.InitCommon
|
|
{
|
|
public static class ApplicationBuilderExtension
|
|
{
|
|
public static IApplicationBuilder UseAppDefault(this IApplicationBuilder app)
|
|
{
|
|
app.UseCors();
|
|
app.UseAuthentication();
|
|
app.UseManagementRuntime();
|
|
app.UseAuthorization();
|
|
app.UseMiddleware<ExceptionMiddleware>();
|
|
app.UseForwardedHeaders();
|
|
return app;
|
|
}
|
|
}
|
|
}
|