I've been using the new Options pattern for configuration in my .net core apps. I like it, but got tired of having to write lines like
services.Configure<FrobOptions>(Configuration.GetSection("Frob"));
every time I added a new configuration class. I've written a library called ConfigureAll to address this inconvenience. With this library, you can add an attribute to your configuration classes indicating their configuration key, like
[ConfigurationObject("Frob")]
public class FrobOptions
{
public string TestValue { get; set; }
}
then just call
services.ConfigureAll(this.GetType().GetTypeInfo().Assembly, Configuration);
once, instead of having to configure each type individually. For more information, see the GitHub page: https://github.com/SapientGuardian/SapientGuardian.ConfigureAll
I've been a long-time user of the WallF BaseNEncodings.Net library. It's the only library I'm aware of that was explicitly built to RFC 4648. I submitted a pull request to retarget the library to netstandard1.1, but received no response from the author. While I had hoped the project were still maintained, that seems not to be the case. To that end, I have forked the library and republished it. The new repo is https://github.com/SapientGuardian/BaseNEncodings.Net. Happy Encoding!