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" />
<PackageReference Include="AuroraScienceHub.Framework.AspNetCore" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=AuroraScienceHub.Framework.AspNetCore&version=10.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
Related Packages
AuroraScienceHub.Framework.Composition- Core module compositionAuroraScienceHub.Framework.Diagnostics- Health checks
| Product | Versions 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.
-
net10.0
- App.Metrics.Abstractions (>= 4.3.0)
- AspNetCore.HealthChecks.NpgSql (>= 9.0.0)
- AspNetCore.HealthChecks.Sqlite (>= 9.0.0)
- AuroraScienceHub.Framework.Composition (>= 10.0.5)
- AuroraScienceHub.Framework.Diagnostics (>= 10.0.5)
- AuroraScienceHub.Framework.Entities (>= 10.0.5)
- AuroraScienceHub.Framework.Utilities (>= 10.0.5)
- Mediator.Abstractions (>= 3.0.1)
- Npgsql (>= 10.0.2)
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 |