Replies: 1 comment
-
so to run middleware in modular - tenant aware pipeline - Option 1 - Using Module public class Startup : StartupBase
{
public override void Configure(IApplicationBuilder app, IEndpointRouteBuilder routes, IServiceProvider serviceProvider)
{
app.Use(async (context, next) => {
System.Diagnostics.Debug.WriteLine("pipeline after");
await next();
});
}
} Option 2 - Using services.AddOrhardCore()
.Configure( (app,routes,svc) => {
app.Use(async (context, next) => {
System.Diagnostics.Debug.WriteLine("pipeline after");
await next();
});
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If put an App.Use(...) in front of app.UseOrchardCore, my pipeline is invoked.
But if I put afterwards, it is not.
This tells me it's not doing an await next();
In an Orchard project, I did this. Only "pipeline before" appears in debug output.
Thanks for any advice.
Beta Was this translation helpful? Give feedback.
All reactions