Skip to content

Latest commit

 

History

History

Bet.Extensions.Options

Bet.Extensions.Options

GitHub license Build status NuGet Nuget feedz.io

The second letter in the Hebrew alphabet is the ב bet/beit. Its meaning is "house". In the ancient pictographic Hebrew it was a symbol resembling a tent on a landscape.

Note: Pre-release packages are distributed via feedz.io.

Summary

The collection of the functionality for Options Validations that can be utilized for AspNetCore or GenericHost.

buymeacoffee

Give a Star! ⭐

If you like or are using this project to learn or start your solution, please give it a star. Thanks!

Install

    dotnet add package Bet.Extensions.Options

Usage

  1. Validation of object on Bind; simply add this package to your application and use Bind validation extensions methods
    var options = config.Bind<MyOptionsWithDatatAnnotations>(options);
  1. Registering Options with IOptionsMonitor
    builder.Services.AddChangeTokenOptions<AcmeAccountOptions>(
        section,
                options.NamedOption = builder.Name;
                options.Configured = true;
            });