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

MethodCallTarget - Support for Lamba method #2809

Merged
merged 1 commit into from
Aug 1, 2018

Conversation

snakefoot
Copy link
Contributor

@snakefoot snakefoot commented Jul 21, 2018

Resolves #2780

Added constructor to allow fluent configuration

Not sure if it should be a declared delegate, or just leave it as an Action-delegate.

@codecov
Copy link

codecov bot commented Jul 22, 2018

Codecov Report

Merging #2809 into master will decrease coverage by <1%.
The diff coverage is 86%.

@@           Coverage Diff           @@
##           master   #2809    +/-   ##
=======================================
- Coverage      81%     81%   -<1%     
=======================================
  Files         326     326            
  Lines       24280   24303    +23     
  Branches     3084    3088     +4     
=======================================
+ Hits        19599   19609    +10     
- Misses       3846    3857    +11     
- Partials      835     837     +2

@304NotModified
Copy link
Member

304NotModified commented Jul 22, 2018

Not sure if it should be a declared delegate, or just leave it as an Action-delegate.

Doubting about this also. I'm reading this: https://stackoverflow.com/questions/2282476/actiont-vs-delegate-event

@304NotModified 304NotModified self-requested a review July 22, 2018 20:46
@304NotModified 304NotModified changed the title MethodCallTarget - Added constructor to allow fluent configuration MethodCallTarget - Support for Lamba method Aug 1, 2018
@304NotModified 304NotModified added this to the 4.5.8 milestone Aug 1, 2018
@304NotModified 304NotModified merged commit f80ddb4 into NLog:master Aug 1, 2018
@snakefoot
Copy link
Contributor Author

snakefoot commented Aug 4, 2018

Updated documentation:

https://github.com/NLog/NLog/wiki/MethodCall-target#configure-call-of-lambda-at-runtime

@snakefoot snakefoot deleted the MethodCallTargetDelegate branch April 4, 2020 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants