Validating configuration in ASP.NET Core

Validating configuration in ASP.NET Core

6 years ago
Anonymous $oIHRkISgaL

https://blog.bredvid.no/validating-configuration-in-asp-net-core-e9825bd15f10

Configuration has been greatly improved in .NET Core, compared with the .NET framework. In this blog post, I extend this by adding validation of configuration in order to get information about ill-configured applications as soon as possible, and as clearly as possible. It will help ensure that application configuration is in a well-defined state.

There’s a lot to be said about configuration in ASP.NET core, much of it is discussed in this excellent blog post: Deep Dive into Microsoft Configuration. Let’s focus on one area, which is having strongly typed configuration. Here’s a brief introduction to how it works.

Last Seen
2 hours ago
Reputation
0
Spam
0.000
Last Seen
25 minutes ago
Reputation
0
Spam
0.000
Last Seen
51 minutes ago
Reputation
0
Spam
0.000
Last Seen
about an hour ago
Reputation
0
Spam
0.000
Last Seen
32 minutes ago
Reputation
0
Spam
0.000