Skip to content
This repository was archived by the owner on Nov 27, 2018. It is now read-only.

Can`t get route segment in custom middleware #223

Closed
Codenator81 opened this issue Oct 28, 2015 · 2 comments
Closed

Can`t get route segment in custom middleware #223

Codenator81 opened this issue Oct 28, 2015 · 2 comments

Comments

@Codenator81
Copy link

After initialized mvc in startup.cs it is not possible get route segment in custom middleware.
Related issue aspnet/Localization#122

@Eilon
Copy link
Contributor

Eilon commented Nov 2, 2015

@Codenator81 routing happens after middleware runs, so I think this ordering is incorrect. We are looking to enable middleware to run as a result of routing in #224, and I think that would enable you to do this.

@Eilon Eilon closed this as completed Nov 2, 2015
@Codenator81
Copy link
Author

@Eilon Great news! This will be very helpful for many scenarios

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants