-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support object vals for mdlc #896
Support object vals for mdlc #896
Conversation
MappedDiagnosticsLogicalContext.Set(key, value); | ||
|
||
Assert.Equal(value, MappedDiagnosticsLogicalContext.Get(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.
this should be getObject? (see fail on appveyor (AV))
an unit test on MappedDiagnosticsLogicalContext.Get(key) (result should be "5"), would be also nice
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.
Sorry for this silly error :/ I fixed immediately and commit.
|
||
MappedDiagnosticsLogicalContext.Set(key, value); | ||
|
||
Assert.Equal(value.ToString(), MappedDiagnosticsLogicalContext.Get(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.
The tostring isn't good here
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.
You are right. I just changed it.
Support object vals for mdlc
Looks good! It has been merged! |
Closes #883 |
I intend to create PR for #883
But there are unrelated commits that coming from my fork update process. I hope they will not cause problem.