AuroraScienceHub.Framework.AspNetCore 10.0.5

Prefix Reserved
dotnet add package AuroraScienceHub.Framework.AspNetCore --version 10.0.5
                    
NuGet\Install-Package AuroraScienceHub.Framework.AspNetCore -Version 10.0.5
                    
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="AuroraScienceHub.Framework.AspNetCore" Version="10.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuroraScienceHub.Framework.AspNetCore" Version="10.0.5" />
                    
Directory.Packages.props
<PackageReference Include="AuroraScienceHub.Framework.AspNetCore" />
                    
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 AuroraScienceHub.Framework.AspNetCore --version 10.0.5
                    
#r "nuget: AuroraScienceHub.Framework.AspNetCore, 10.0.5"
                    
#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 AuroraScienceHub.Framework.AspNetCore@10.0.5
                    
#: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=AuroraScienceHub.Framework.AspNetCore&version=10.0.5
                    
Install as a Cake Addin
#tool nuget:?package=AuroraScienceHub.Framework.AspNetCore&version=10.0.5
                    
Install as a Cake Tool

AuroraScienceHub.Framework.AspNetCore

ASP.NET Core extensions including web application module composition, problem details handling, and security utilities.

Overview

Extends the Composition framework with ASP.NET Core-specific functionality, providing web application modules and standardized error handling.

Key Features

  • Web Application Modules - Extend composition framework for web apps
  • Problem Details - RFC 7807 compliant error responses
  • Security Utilities - Authentication and authorization helpers
  • Routing Extensions - Simplified endpoint configuration

Installation

dotnet add package AuroraScienceHub.Framework.AspNetCore

Usage

Web Application Module

public class UserWebModule : WebApplicationModuleBase<UserModuleOptions>
{
    public UserWebModule()
        : base("User", new ServiceModuleBase[]
        {
            new UserServiceModule()
        })
    {
    }

    public override void ConfigureApplication(
        IApplicationBuilder app,
        IConfiguration configuration)
    {
        // Configure middleware pipeline
        app.UseAuthentication();
        app.UseAuthorization();
    }
}

// Register in Program.cs
var builder = WebApplication.CreateBuilder(args);
var userModule = new UserWebModule();
userModule.ConfigureServices(builder.Services, builder.Configuration);

var app = builder.Build();
userModule.ConfigureApplication(app, app.Configuration);

Problem Details Error Handling

app.UseExceptionHandler(exceptionHandlerApp =>
{
    exceptionHandlerApp.Run(async context =>
    {
        var exception = context.Features.Get<IExceptionHandlerFeature>()?.Error;

        var problemDetails = exception switch
        {
            ValidationException ex => new ProblemDetails
            {
                Status = 400,
                Title = "Validation Error",
                Detail = ex.Message
            },
            EntityNotFoundException ex => new ProblemDetails
            {
                Status = 404,
                Title = "Not Found",
                Detail = ex.Message
            },
            _ => new ProblemDetails
            {
                Status = 500,
                Title = "An error occurred"
            }
        };

        await context.Response.WriteAsJsonAsync(problemDetails);
    });
});

Module Options

public class UserModuleOptions : ApplicationModuleOptionsBase
{
    public bool EnableEmailVerification { get; set; } = true;
}

// appsettings.json
{
  "Modules": {
    "User": {
      "EnableEmailVerification": true,
      "EnableConsumers": true
    }
  }
}

License

See LICENSE file in the repository root.

  • AuroraScienceHub.Framework.Composition - Core module composition
  • AuroraScienceHub.Framework.Diagnostics - Health checks
Product Compatible and additional computed target framework versions.
.NET 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
10.0.5 101 4/23/2026
10.0.4 110 4/23/2026
10.0.3 123 2/11/2026
10.0.2 115 1/29/2026
10.0.1 222 12/25/2025
10.0.0 435 12/11/2025
9.0.7 424 11/20/2025
9.0.6 188 11/15/2025
9.0.5 141 11/8/2025
9.0.4 149 10/24/2025
9.0.3 209 10/15/2025
9.0.2 193 10/15/2025
9.0.1 202 10/14/2025
9.0.1-workflow-test-2.17 149 10/14/2025