-
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
Additional ASP.NET renderers (.NET Core compliant) & unit tests for .NET Core #54
Conversation
aspnet-request-cookie Renderer
aspnet-request-referrer Renderer. The ASP.NET MVC CORE Version is not yet tested.
aspnet-request-referrer fixed the ASP.NET MVC CORE.
Completed aspnet-request-url and did some improvements to the aspnet-request-referrer.
aspnet-useragent
public class CookieTests | ||
{ | ||
[Fact] | ||
public void NullKeyRendersEmptyString() |
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.
Looks good, maybe it's nice to create some helper methods to prevent code duplication
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.
What is the code duplication you are referring here?
I think it looks good, I added some notes but all of them are minor code style notes. I prefer to keep the code between |
PR Comments and improvement to documentation.
aspnet-request-method
/// To control the Cooked Renderer Output formatting. | ||
/// </summary> | ||
public enum AspNetCookieLayoutOutPutFormat | ||
{ |
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.
OutPut
=> Output
:)
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.
Done
Fixed the Build Errors.
Fixed the Build Errors.
Looks good! We have to do three things:
Correct? |
How do you think this needs to be done? Any pointers would be helpful.
Yes, we would need a release which has List Renderer support.
Yes. We would also need to add examples on how to use it. May be pointers back to Tests Cases for starters. |
I have merged it with the unit tests branch, so the unit tests should work now :)
Add to https://github.com/NLog/NLog/wiki/Layout-Renderers and add the text "Introduced in NLog.Web 4.3". So new page for every layout renderer. Would be nice to add some docs to the "legacy" layout renderers.
Can you check /review NLog/NLog#1439 for me? Im doubting especially with the current escape character: the backtick (`). To bad we cannot use backslash (because it's also an escape of the layout renderers already)
This should be done now. Nice that this branch is in this repo :)
That would be nice indeed |
oops broke the unit tests on net full. Worked on my machine... |
sorry, broke it, working on fixing it. Merge was wrong |
da6996f
to
ee03151
Compare
should be fixed |
merged :) |
Documentation completed. |
aspnet-request-cookie - To Render cookie(s) from the request. Allows comma separated to get multiple cookie values. Can also allow json formatting.
aspnet-request-querystring - querystring
aspnet-request-method - the method (GET/POST etc)
aspnet-request-referrer - To Render the Referrer URL.
aspnet-request-url - To Render the Request URL.
aspnet-useragent - To Capture the Useragent of the request.
aspnet-host- The host of the request
aspnet-mvc-action - action name
aspnet-mvc-controller - controller name
Related #53