Peeveen.AspNetCore.Utils
1.2.0
dotnet add package Peeveen.AspNetCore.Utils --version 1.2.0
NuGet\Install-Package Peeveen.AspNetCore.Utils -Version 1.2.0
<PackageReference Include="Peeveen.AspNetCore.Utils" Version="1.2.0" />
<PackageVersion Include="Peeveen.AspNetCore.Utils" Version="1.2.0" />
<PackageReference Include="Peeveen.AspNetCore.Utils" />
paket add Peeveen.AspNetCore.Utils --version 1.2.0
#r "nuget: Peeveen.AspNetCore.Utils, 1.2.0"
#:package Peeveen.AspNetCore.Utils@1.2.0
#addin nuget:?package=Peeveen.AspNetCore.Utils&version=1.2.0
#tool nuget:?package=Peeveen.AspNetCore.Utils&version=1.2.0
Peeveen.AspNetCore.Utils
Some handy extensions and classes for ASP.NET Core that I like to use.
BindWithDynamics / BindDynamics
Extension methods that will attempt to build populated ExpandoObjects to fulfil any
dynamic members in your options type (normally, any dynamic members are just
bound to an empty instance of Object, or null).
Usage
serviceCollection
.AddOptions<MyOptions>()
.BindWithDynamics(configurationSection);
This is equivalent to the following code:
serviceCollection
.AddOptions<MyOptions>()
.Bind(configurationSection)
.Configure(options => options.BindDynamics(configurationSection));
AddYamlFile
Extension method for IConfigurationBuilder to add YAML configuration files. Based
around the NetEscapades.Configuration.Yaml package, but simplifies the use of
environment names in filenames.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- NetEscapades.Configuration.Yaml (>= 3.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.