DavidGroup.Core.CompositionExtensions 1.0.0-dev.2

This is a prerelease version of DavidGroup.Core.CompositionExtensions.
There is a newer version of this package available.
See the version list below for details.
dotnet add package DavidGroup.Core.CompositionExtensions --version 1.0.0-dev.2
                    
NuGet\Install-Package DavidGroup.Core.CompositionExtensions -Version 1.0.0-dev.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DavidGroup.Core.CompositionExtensions" Version="1.0.0-dev.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DavidGroup.Core.CompositionExtensions" Version="1.0.0-dev.2" />
                    
Directory.Packages.props
<PackageReference Include="DavidGroup.Core.CompositionExtensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DavidGroup.Core.CompositionExtensions --version 1.0.0-dev.2
                    
#r "nuget: DavidGroup.Core.CompositionExtensions, 1.0.0-dev.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DavidGroup.Core.CompositionExtensions@1.0.0-dev.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DavidGroup.Core.CompositionExtensions&version=1.0.0-dev.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=DavidGroup.Core.CompositionExtensions&version=1.0.0-dev.2&prerelease
                    
Install as a Cake Tool

DavidGroup.Core.CompositionExtensions

Release Nuget

Common and helpful extensions to be used in application composition root for .NET applications.


🚀 Getting Started

Install NuGet Package

Using the .NET CLI:

dotnet add package DavidGroup.Core.CompositionExtensions

Or via the Package Manager Console:

Install-Package DavidGroup.Core.CompositionExtensions

How to use it?

Feel free to explore the samples to find practical examples for each feature. New samples are added continuously as more features are developed.

📦 Key Features

CORS Configuration

{
  "CorsOptions": {
    "AllowedOrigins": "https://app.example.com;https://admin.example.com",
    "AllowedMethods": "GET;POST;PUT;DELETE",
    "AllowedHeaders": "Content-Type;Authorization"
  }
}
builder.Services.AddCorsFromConfiguration(builder.Configuration);

app.UseCors();

Forwarded Headers

{
  "ForwardedHeadersOptions": {
    "ForwardedHeaders": "XForwardedFor,XForwardedProto",
    "KnownProxies": [
      "10.0.0.100"
    ],
    "KnownNetworks": [
      {
        "Prefix": "10.0.0.0",
        "PrefixLength": 24
      }
    ]
  }
}
builder.Services.ConfigureForwardedHeadersOptionsFromConfiguration(builder.Configuration);

app.UseForwardedHeaders();

API Versioning

builder.Services.AddDefaultApiVersioning();

[ApiVersion(1.0)]
[Route("api/v{version:apiVersion}/users")]
public sealed class UsersController : ControllerBase
{
}

Serilog

{
  "Serilog": {
    "MinimumLevel": "Information",
    "WriteTo": [
      {
        "Name": "Console"
      }
    ]
  }
}
builder.Host.UseSerilogFromConfiguration();

OpenTelemetry

builder.Services.AddDefaultOpenTelemetry("BookstoreService");

Quartz.NET

builder.Services.AddQuartzDefaults(
    builder.Configuration.GetConnectionString("DefaultConnection"),
    quartz => quartz.AddCronJobAndTrigger<CleanupJob>("0 0 * * * ?"));
public sealed class CleanupJob : IJob
{
    public Task Execute(IJobExecutionContext context)
    {
        // Execute scheduled work.
        return Task.CompletedTask;
    }
}

🤝 Contributing

Found a bug? Have an idea? Want to contribute?

Contributions of any size are appreciated!

📝 License

Distributed under the MIT license. See License for more information.

Copyright © 2025-2026 David Khachatryan (David Group Solutions)

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 74 9/6/2026
1.1.0-develop.3 75 9/6/2026
1.0.2 89 7/12/2026
1.0.2-develop.2 72 7/12/2026
1.0.1 80 7/9/2026
1.0.1-dev.5 66 7/9/2026
1.0.1-dev.4 75 7/9/2026
1.0.0 71 7/8/2026
1.0.0-dev.3 66 7/8/2026
1.0.0-dev.2 68 7/8/2026