Skip to content
Discussion options

You must be logged in to vote

Henry,
Because you developed custom delegating handler it will be better to exclude the routes right in the SendAsync method. If you've detected the route to exclude, just call base.SendAsync and the delegating handler will not process.
The collection of the routes to exclude you can save in appsettings.json, then inject IOptions<TSection> object into the constructor.
Why not to implement this solution?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Delegating Handlers Ocelot feature: Delegating Handlers
2 participants
Converted from issue

This discussion was converted from issue #1446 on February 08, 2024 19:17.