-
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 "ValuesOnly" property to Cookie and QueryString layout renderers + support for multivalue cookie keys in ASP.NET core #307
Added "ValuesOnly" property to Cookie and QueryString layout renderers + support for multivalue cookie keys in ASP.NET core #307
Conversation
…derer, AspNetRequestCookieLayoutRenderer - adds ValuesOnly property and tests, plus fixes multi-value test bugs in the latter
Codecov Report
@@ Coverage Diff @@
## master #307 +/- ##
=====================================
+ Coverage 59% 59% +1%
=====================================
Files 31 31
Lines 396 401 +5
Branches 88 91 +3
=====================================
+ Hits 232 237 +5
Misses 129 129
Partials 35 35
Continue to review full report at Codecov.
|
Thanks! |
@304NotModified By the way, happy to update wiki for this and also my assembly version work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work! Thanks! Also for the unit tests :)
Please do, you could add: added in NLog.Web / NLog.Web.AspNetCore 4.6 :) |
Looks good! Thanks! We will release this after NLog 4.5.8 is released :) |
Fixes #294 by adding a ValuesOnly property to AspNetLayoutMultiValueRendererBase and implements it for sub-classes AspNetRequestCookieLayoutRenderer and AspNetRequestQueryStringLayoutRenderer. This also includes a fix for multi-value cookie unit tests that slipped through my previous PR, and simplifies Core vs Full framework implementation and unit tests.
Also fixes unit tests not functioning correctly for full framework AssemblyVersionLayoutRender due to incorrect project references.