Cogito.Extensions.Options.Configuration.Autofac
4.0.4
dotnet add package Cogito.Extensions.Options.Configuration.Autofac --version 4.0.4
NuGet\Install-Package Cogito.Extensions.Options.Configuration.Autofac -Version 4.0.4
<PackageReference Include="Cogito.Extensions.Options.Configuration.Autofac" Version="4.0.4" />
<PackageVersion Include="Cogito.Extensions.Options.Configuration.Autofac" Version="4.0.4" />
<PackageReference Include="Cogito.Extensions.Options.Configuration.Autofac" />
paket add Cogito.Extensions.Options.Configuration.Autofac --version 4.0.4
#r "nuget: Cogito.Extensions.Options.Configuration.Autofac, 4.0.4"
#:package Cogito.Extensions.Options.Configuration.Autofac@4.0.4
#addin nuget:?package=Cogito.Extensions.Options.Configuration.Autofac&version=4.0.4
#tool nuget:?package=Cogito.Extensions.Options.Configuration.Autofac&version=4.0.4
Cogito.Extensions.Options.Configuration.Autofac
Declare on an options type which configuration section it binds to.
Why
An options class and the section it reads belong together. Keeping the section name in startup means every new options type edits the same file, and a rename splits the pair silently.
Install
dotnet add package Cogito.Extensions.Options.Configuration.Autofac
Use
[RegisterOptions("Import")]
public class ImportSettings
{
public string Directory { get; set; }
public TimeSpan Interval { get; set; }
}
With module scanning in place the type is registered and bound, and IOptions<ImportSettings>
resolves with the section's values:
builder.RegisterAllAssemblyModules();
Configure on the container builder is the imperative equivalent.
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.Autofac (>= 4.0.3)
- Cogito.Extensions.Options.Autofac (>= 4.0.4)
- Cogito.Extensions.Options.Configuration (>= 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.Autofac (>= 4.0.3)
- Cogito.Extensions.Options.Autofac (>= 4.0.4)
- Cogito.Extensions.Options.Configuration (>= 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 (4)
Showing the top 4 NuGet packages that depend on Cogito.Extensions.Options.Configuration.Autofac:
| Package | Downloads |
|---|---|
|
Cogito.Quartz.Autofac
Provides utilites and extensions for Quartz and Autofac. |
|
|
Cogito.Seq.Autofac
Various utilities for Seq. |
|
|
Cogito.Azure.Identity.Autofac
Additional components for managing Azure Identity. |
|
|
Cogito.Azure.Storage.Autofac
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 | 62 | 11/28/2026 |
| 4.0.3 | 565 | 9/14/2026 |
| 4.0.2 | 125 | 9/14/2026 |
| 4.0.1 | 801 | 9/10/2026 |
| 4.0.0 | 5,233 | 12/20/2024 |
| 3.0.3 | 4,037 | 11/29/2023 |
| 3.0.1 | 701 | 11/7/2023 |
| 3.0.0 | 299 | 11/7/2023 |
| 2.0.19 | 19,279 | 10/18/2020 |
| 2.0.17 | 7,597 | 8/7/2020 |
| 2.0.16 | 739 | 8/7/2020 |
| 2.0.15 | 754 | 8/7/2020 |
| 2.0.13 | 768 | 8/7/2020 |
| 2.0.11 | 726 | 8/7/2020 |
| 2.0.10 | 10,697 | 6/30/2020 |
| 2.0.8 | 932 | 3/2/2020 |
| 2.0.4 | 839 | 2/7/2020 |
| 2.0.3 | 788 | 2/7/2020 |
| 2.0.2 | 845 | 2/6/2020 |
| 1.0.4 | 861 | 1/13/2020 |