Replies: 1 comment 3 replies
-
If you could give more information about what you're trying to do (for example, what you intend to do with the information inside the rewrite rules) we might be able to offer more suggestions. @jkotalik I guess it's clear the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to interogate the Rewrite rules, but all the rewrite rules are marked as internal so I can't actually cast to that type.
https://github.com/dotnet/aspnetcore/blob/a23dd41428f2be93435b730ff0fcff05bf196c93/src/Middleware/Rewrite/src/RedirectRule.cs
In the above you cannot interrogate the options.Rules collection, they are all type of IRule, and am unable to cast them to RewriteRule because the class is internal.
How to iterate through the rules collection?
Beta Was this translation helpful? Give feedback.
All reactions