-
Notifications
You must be signed in to change notification settings - Fork 166
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
…ute (Avoid Missing serviceProvider during scanning)
@304NotModified Any progress on this review? |
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.
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) => |
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.
why Funcs and not private methodes?
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.
No special reason. Think I was just keeping the existing coding-style.
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.
I really prefer private method then. Less clutter.
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.
By private methods do you mean normal methods or local methods (c# 7.0) ?
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.
normal please.
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
Thanks! |
Could also be nice to remove "Microsoft.AspNetCore.Http", but it would require removal of
RegisterHttpContextAccessor