-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added AspNet-Request-ConnectionId and AspNet-Response-Has-Started #796
Added AspNet-Request-ConnectionId and AspNet-Response-Has-Started #796
Conversation
Add TryGetConnection to HttpContextExtensions and update layout renders that use connection to use that instead.
This reverts commit 3444edd.
Though it seems tempting, then you cannot repair past mistakes unless doing a major-version-bump (Ex. NLog.Web v6) Please revert class-renames, then we can make an issue about fixing this with v6. |
Yes I will revert the class names commits and keep them local. |
reverted as requested, kept changes local to my laptop |
Codecov Report
@@ Coverage Diff @@
## master #796 +/- ##
======================================
+ Coverage 67% 69% +2%
======================================
Files 60 62 +2
Lines 1011 1141 +130
Branches 249 284 +35
======================================
+ Hits 680 787 +107
- Misses 225 236 +11
- Partials 106 118 +12
Continue to review full report at Codecov.
|
w3c layout unit test fail again, but this should be able to be pulled successfully. |
src/Shared/LayoutRenderers/AspNetRequestWebSocketRequestedProtocolsLayoutRenderer.cs
Outdated
Show resolved
Hide resolved
src/Shared/LayoutRenderers/AspNetResponseHeadersWrittenLayoutRenderer.cs
Outdated
Show resolved
Hide resolved
src/Shared/LayoutRenderers/AspNetRequestIsWebSocketLayoutRenderer.cs
Outdated
Show resolved
Hide resolved
src/Shared/LayoutRenderers/AspNetResponseHeadersWrittenLayoutRenderer.cs
Outdated
Show resolved
Hide resolved
After this I cannot think of more NLog.Web layout renderers. Hopefully someone will find them useful. We are not trying to be equal to Visual Studio debugger in NLog, but I just try to find properties of HttpContext that we did not have already, that might be necessary to be logged. |
Kudos, SonarCloud Quality Gate passed! |
Thank you for nudging. Have tried to make |
Have now merged #813 that will ensure future class-names will always end with "LayoutRenderer" (And matches their type-alias) |
Added render for (Core only) HttpContext.Connection.Id
Added render for both Core and Framework for HttpResponse HeadersWritten(Framework) and HasStarted(Core) named AspNetResponseHeadersWrittenLayoutRenderer
Added public bool Verbose option for ClientCertificate renderer
Added extension methods for HttpContext for TryGetConnection and TryGetWebSocket