Reorder middlewares.

Resolve #18158
pull/18165/head
maliming 1 year ago
parent 5d6f36dca2
commit b1c2f2170c
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4

@ -217,9 +217,10 @@ public class MyProjectNameAuthServerModule : AbpModule
app.UseMultiTenancy();
}
app.UseDynamicClaims();
app.UseUnitOfWork();
app.UseDynamicClaims();
app.UseAuthorization();
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseConfiguredEndpoints();

@ -270,14 +270,16 @@ public class MyProjectNameBlazorModule : AbpModule
{
app.UseMultiTenancy();
}
app.UseDynamicClaims();
app.UseUnitOfWork();
app.UseDynamicClaims();
app.UseAuthorization();
app.UseSwagger();
app.UseAbpSwaggerUI(options =>
{
options.SwaggerEndpoint("/swagger/v1/swagger.json", "MyProjectName API");
});
app.UseConfiguredEndpoints();
}
}

@ -195,6 +195,8 @@ public class MyProjectNameHttpApiHostModule : AbpModule
{
app.UseMultiTenancy();
}
app.UseUnitOfWork();
app.UseDynamicClaims();
app.UseAuthorization();
@ -210,7 +212,6 @@ public class MyProjectNameHttpApiHostModule : AbpModule
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseUnitOfWork();
app.UseConfiguredEndpoints();
}
}

@ -203,8 +203,8 @@ public class MyProjectNameHttpApiHostModule : AbpModule
{
app.UseMultiTenancy();
}
app.UseDynamicClaims();
app.UseUnitOfWork();
app.UseDynamicClaims();
app.UseAuthorization();
app.UseSwagger();

@ -235,14 +235,16 @@ public class MyProjectNameWebModule : AbpModule
app.UseMultiTenancy();
}
app.UseDynamicClaims();
app.UseUnitOfWork();
app.UseDynamicClaims();
app.UseAuthorization();
app.UseSwagger();
app.UseAbpSwaggerUI(options =>
{
options.SwaggerEndpoint("/swagger/v1/swagger.json", "MyProjectName API");
});
app.UseAuditing();
app.UseAbpSerilogEnrichers();
app.UseConfiguredEndpoints();

Loading…
Cancel
Save