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

${whenEmpty} implemented IRawValue and IStringValueRenderer #3398

Merged
merged 3 commits into from May 14, 2019

Conversation

snakefoot
Copy link
Contributor

Alternative implementation of #3395

@snakefoot snakefoot changed the base branch from dev to master May 13, 2019 18:15
@codecov-io
Copy link

codecov-io commented May 13, 2019

Codecov Report

Merging #3398 into release/4.6.4 will increase coverage by <1%.
The diff coverage is 73%.

@@              Coverage Diff               @@
##           release/4.6.4   #3398    +/-   ##
==============================================
+ Coverage             80%     80%   +<1%     
==============================================
  Files                357     357            
  Lines              28262   28302    +40     
  Branches            3760    3767     +7     
==============================================
+ Hits               22636   22671    +35     
- Misses              4531    4537     +6     
+ Partials            1095    1094     -1

@304NotModified 304NotModified changed the base branch from master to release/4.6.4 May 13, 2019 22:07
@304NotModified 304NotModified added this to the 4.6.4 milestone May 13, 2019
@304NotModified 304NotModified self-assigned this May 13, 2019
/// <inheritdoc/>
protected override void InitializeLayoutRenderer()
{
base.InitializeLayoutRenderer();
WhenEmpty?.Initialize(LoggingConfiguration);
_skipStringValueRenderer = !TryGetStringValue(out var _, out var _);
Copy link
Member

Choose a reason for hiding this comment

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

I think you don't want var here ;) (the _ is also a keyword)

I have updated it

@304NotModified
Copy link
Member

Thanks! Refactored some duplicate lines and added some tests. Now good to go :)

@304NotModified 304NotModified changed the title WhenEmptyLayoutRendererWrapper with IRawValue and IStringValueRenderer Implement IRawValue and IStringValueRenderer May 14, 2019
@304NotModified 304NotModified changed the title Implement IRawValue and IStringValueRenderer ${whenEmpty} implement IRawValue and IStringValueRenderer May 14, 2019
@304NotModified 304NotModified changed the title ${whenEmpty} implement IRawValue and IStringValueRenderer ${whenEmpty} implemented IRawValue and IStringValueRenderer May 14, 2019
@304NotModified 304NotModified merged commit 3309247 into NLog:release/4.6.4 May 14, 2019
304NotModified pushed a commit that referenced this pull request May 20, 2019
* WhenEmptyLayoutRendererWrapper with IRawValue and IStringValueRenderer

* refactor

* added test
304NotModified pushed a commit that referenced this pull request May 28, 2019
* WhenEmptyLayoutRendererWrapper with IRawValue and IStringValueRenderer

* refactor

* added test
@snakefoot snakefoot deleted the WhenEmptyTryGetRaw branch April 4, 2020 12:55
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.

None yet

3 participants