Skip to content
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

Removed dependency on Microsoft.AspNetCore.Http.Extensions #312

Merged
merged 5 commits into from Aug 31, 2018

Conversation

snakefoot
Copy link
Contributor

Could also be nice to remove "Microsoft.AspNetCore.Http", but it would require removal of RegisterHttpContextAccessor

@codecov
Copy link

codecov bot commented Aug 16, 2018

Codecov Report

Merging #312 into master will decrease coverage by <1%.
The diff coverage is 38%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #312    +/-   ##
======================================
- Coverage      59%    58%   -<1%     
======================================
  Files          31     31            
  Lines         401    399     -2     
  Branches       91     95     +4     
======================================
- Hits          235    233     -2     
+ Misses        129    128     -1     
- Partials       37     38     +1
Impacted Files Coverage Δ
...eb.AspNetCore/Internal/RequestAccessorExtension.cs 100% <ø> (ø) ⬆️
...etCore/LayoutRenderers/AspNetLayoutRendererBase.cs 88% <ø> (ø) ⬆️
...ayoutRenderers/AspNetSessionValueLayoutRenderer.cs 80% <100%> (ø) ⬆️
NLog.Web.AspNetCore/Internal/PropertyReader.cs 71% <25%> (-14%) ⬇️
...e/LayoutRenderers/AspNetItemValueLayoutRenderer.cs 86% <33%> (-2%) ⬇️
...outRenderers/AspNetLayoutMultiValueRendererBase.cs 98% <0%> (+2%) ⬆️
...youtRenderers/AspNetRequestCookieLayoutRenderer.cs 85% <0%> (+4%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ac0bc6...56e07a6. Read the comment docs.

@304NotModified 304NotModified self-assigned this Aug 21, 2018
…ute (Avoid Missing serviceProvider during scanning)
@snakefoot
Copy link
Contributor Author

@304NotModified Any progress on this review?

Copy link
Member

@304NotModified 304NotModified left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the reminder!

One question, see notes

return items?.Count > 0 && items.Contains(key) ? items[key] : null;
};
#else
Func<IDictionary<object, object>, string, object> getVal = (items, key) =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why Funcs and not private methodes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No special reason. Think I was just keeping the existing coding-style.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really prefer private method then. Less clutter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By private methods do you mean normal methods or local methods (c# 7.0) ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normal please.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@304NotModified
Copy link
Member

Thanks!

@304NotModified 304NotModified added this to the NLog.Web.AspNetCore 4.6.1 milestone Aug 30, 2018
@304NotModified 304NotModified merged commit a6f0282 into NLog:master Aug 31, 2018
@304NotModified 304NotModified modified the milestones: NLog.Web.AspNetCore 4.6.1, NLog.Web + NLog.Web.AspNetCore 4.7 Sep 22, 2018
@snakefoot snakefoot added ASP.NET Core ASP.NET Core - all versions and removed ASP.NET Core 1 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASP.NET Core ASP.NET Core - all versions enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants