-
Notifications
You must be signed in to change notification settings - Fork 129
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
params
arguments should be regarded as optional
#441
Comments
Thanks for your message. If the problem is a change is between versions of TestCorrelator, this is best asked over in that project: https://github.com/MitchBodmer/serilog-sinks-testcorrelator. Thanks! |
I have posted it there now. Let me see if they push it back here :) |
For the record, changing the appsettings file as below worked.
|
@nblumhardt I think this is probably a "bug" in the configuration library, or more specifically a missing feature. It seems (from my quick browsing) that this is happening because the config library doesn't determine that if the parameter is a I think the fix is to add a check for the |
Thanks @MitchBodmer! 👍 |
params
arguments should be regarded as optional
This is also the likely cause of Serilog 4.1's See: serilog/serilog#2108 (comment) via @ArieGato |
@nblumhardt I think it has to do with the fact that FallbackChain is not an extension method e.g. static. I guess that the |
The following code was working with the previous version of TestCorrelator (3.2.0), but it is failing with v4.
Here is the code.
If I replace ReadFrom.Configuration with this line, the code above works.
Here is my appsettings.Test.json
The text was updated successfully, but these errors were encountered: