You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add note to README about the invariant culture change
And also mark all ReadFrom.Configuration() methods obsolete to encourage people to migrate to the new method that uses the invariant culture.
Note that when using `ReadFrom.Configuration(configuration)` without any additional parameter, the new method that takes a `ConfigurationContext` will be used automatically. This is exactly what happens in the sample project.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -285,6 +285,8 @@ Some Serilog packages require a reference to a logger configuration object. The
285
285
286
286
When the configuration specifies a discrete value for a parameter (such as a string literal), the package will attempt to convert that value to the target method's declared CLR type of the parameter. Additional explicit handling is provided for parsing strings to `Uri`, `TimeSpan`, `enum`, arrays and custom collections.
287
287
288
+
Since version 3.5.0, conversion will use the invariant culture (`CultureInfo.InvariantCulture`) as long as the `ReadFrom.Configuration(IConfiguration configuration, ConfigurationContext context)` method is used. Obsolete methods use the current culture to preserve backward compatibility.
289
+
288
290
### Static member support
289
291
290
292
Static member access can be used for passing to the configuration argument via [special](https://github.com/serilog/serilog-settings-configuration/blob/dev/test/Serilog.Settings.Configuration.Tests/StringArgumentValueTests.cs#L35) syntax:
0 commit comments