Browse Source
Merge pull request #18165 from abpframework/Reorder-middlewares
Reorder middlewares.
pull/18170/head
liangshiwei
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
11 additions and
5 deletions
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.AuthServer/MyProjectNameAuthServerModule.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor.Server/MyProjectNameBlazorModule.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Host/MyProjectNameHttpApiHostModule.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.HostWithIds/MyProjectNameHttpApiHostModule.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs
|
|
|
@ -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(); |
|
|
|
|