Cogito.Extensions.Options.Configuration
4.0.4
dotnet add package Cogito.Extensions.Options.Configuration --version 4.0.4
NuGet\Install-Package Cogito.Extensions.Options.Configuration -Version 4.0.4
<PackageReference Include="Cogito.Extensions.Options.Configuration" Version="4.0.4" />
<PackageVersion Include="Cogito.Extensions.Options.Configuration" Version="4.0.4" />
<PackageReference Include="Cogito.Extensions.Options.Configuration" />
paket add Cogito.Extensions.Options.Configuration --version 4.0.4
#r "nuget: Cogito.Extensions.Options.Configuration, 4.0.4"
#:package Cogito.Extensions.Options.Configuration@4.0.4
#addin nuget:?package=Cogito.Extensions.Options.Configuration&version=4.0.4
#tool nuget:?package=Cogito.Extensions.Options.Configuration&version=4.0.4
Cogito.Extensions.Options.Configuration
Binds options types to configuration sections.
Why
services.Configure<T>(configuration.GetSection("...")) is the standard line, and it puts the
section name in startup rather than next to the type it configures. These extensions are the
building block for moving that decision to the options type.
Install
dotnet add package Cogito.Extensions.Options.Configuration
Use
services.Configure<ImportSettings>("Import");
The section is resolved from the IConfiguration in the container rather than one passed in, so the
call does not need configuration in scope.
See Cogito.Extensions.Options.Configuration.Autofac for the declarative form.
License
MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Cogito.Extensions.Configuration (>= 4.0.3)
- Cogito.Extensions.Options (>= 4.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.12)
-
net6.0
- Cogito.Extensions.Configuration (>= 4.0.3)
- Cogito.Extensions.Options (>= 4.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.12)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Cogito.Extensions.Options.Configuration:
| Package | Downloads |
|---|---|
|
Cogito.Extensions.Options.Configuration.Autofac
Various additions to Microsoft.Extensions.Options for Autofac. |
|
|
Cogito.Azure.Identity
Additional components for managing Azure Identity. |
|
|
Cogito.Azure.Storage
Additional components for managing Azure Storage. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.4 | 0 | 11/28/2026 |
| 4.0.3 | 785 | 9/14/2026 |
| 4.0.2 | 159 | 9/14/2026 |
| 4.0.1 | 834 | 9/10/2026 |
| 4.0.0 | 7,761 | 12/20/2024 |
| 3.0.3 | 13,193 | 11/29/2023 |
| 3.0.1 | 1,329 | 11/7/2023 |
| 3.0.0 | 636 | 11/7/2023 |
| 2.0.19 | 29,951 | 10/18/2020 |
| 2.0.17 | 8,108 | 8/7/2020 |
| 2.0.16 | 1,408 | 8/7/2020 |
| 2.0.15 | 1,421 | 8/7/2020 |
| 2.0.13 | 1,454 | 8/7/2020 |
| 2.0.11 | 1,407 | 8/7/2020 |
| 2.0.10 | 10,699 | 6/30/2020 |
| 2.0.8 | 1,606 | 3/2/2020 |
| 2.0.4 | 1,538 | 2/7/2020 |
| 2.0.3 | 1,446 | 2/7/2020 |
| 2.0.2 | 1,548 | 2/6/2020 |
| 1.0.4 | 1,540 | 1/13/2020 |