Closed AlonCG closed 6 years ago
So I think this is actually a stupid issue, i can just access the trace identifier from the HttpContext in the middleware. So ... unless that is not what I should be doing, please let me know. Thanks!
@AlonCG Sorry I missed the notification on this one. Inside middleware it's safe to simply use the HttpContext directly as you suggest.
@stevejgordon Awesome no worries, thanks!
Hello, sorry for this question, I am a bit at wits end. First, thanks for this code, I think it is exactly what I need. However, I can not figure out how to register the Transient class to be injected into my custom middleware. If I use an actionFilter, then it works fine, but for some reason I can't get it injected properly otherwise in the middleware.
ConfigServices is defined with ...
Configure has ...
This is my first attempt at middleware and any suggestions would be appreciative...
(Sorry, I think the formatting here is shotty!)