Trellis.ServiceDefaults
3.0.0-alpha.527
This is a prerelease version of Trellis.ServiceDefaults.
dotnet add package Trellis.ServiceDefaults --version 3.0.0-alpha.527
NuGet\Install-Package Trellis.ServiceDefaults -Version 3.0.0-alpha.527
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="Trellis.ServiceDefaults" Version="3.0.0-alpha.527" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trellis.ServiceDefaults" Version="3.0.0-alpha.527" />
<PackageReference Include="Trellis.ServiceDefaults" />
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 Trellis.ServiceDefaults --version 3.0.0-alpha.527
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Trellis.ServiceDefaults, 3.0.0-alpha.527"
#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 Trellis.ServiceDefaults@3.0.0-alpha.527
#: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=Trellis.ServiceDefaults&version=3.0.0-alpha.527&prerelease
#tool nuget:?package=Trellis.ServiceDefaults&version=3.0.0-alpha.527&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Trellis.ServiceDefaults
An ordered composition root for Trellis services. Configure authorization, validation, EF Core transactions, outbox, inbox, idempotency, and integration events in one fluent call.
Installation
dotnet add package Trellis.ServiceDefaults
Quick Example
using Trellis.ServiceDefaults;
builder.Services.AddTrellis(trellis => trellis
.UseAsp()
.UseScalarValueValidation()
.UseProblemDetails()
.UseMediator()
.UseFluentValidation(typeof(Program).Assembly)
.UseClaimsActorProvider()
.UseResourceAuthorization(typeof(Program).Assembly)
.UseEntityFrameworkUnitOfWork<AppDbContext>());
Call AddTrellis(...) once. If omitted, the composition features are intentionally not registered.
Key Features
- Applies Trellis registrations in canonical pipeline order.
- Keeps feature selection explicit and discoverable at the application composition root.
- Provides slots for ASP.NET Core, authorization, FluentValidation, EF Core unit of work, outbox, inbox, idempotency, and events.
- Preserves package-specific options through focused
UseXxx(...)methods. - Leaves vendor stores and transport adapters in their owning packages, avoiding unnecessary SDK dependencies.
For most applications, use the builder instead of mixing standalone AddTrellis* calls. Provider-specific stores and adapters remain separate registrations by design.
Documentation
| 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
- FluentValidation (>= 12.1.1)
- Mediator.Abstractions (>= 3.0.2)
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.DependencyModel (>= 10.0.12)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Options (>= 10.0.12)
- OpenTelemetry.Api (>= 1.18.0)
- Trellis.Asp (>= 3.0.0-alpha.527)
- Trellis.EntityFrameworkCore (>= 3.0.0-alpha.527)
- Trellis.EntityFrameworkCore.Inbox (>= 3.0.0-alpha.527)
- Trellis.EntityFrameworkCore.Outbox (>= 3.0.0-alpha.527)
- Trellis.Mediator (>= 3.0.0-alpha.527)
- Trellis.Mediator.FluentValidation (>= 3.0.0-alpha.527)
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 |
|---|---|---|
| 3.0.0-alpha.527 | 29 | 10/1/2026 |
| 3.0.0-alpha.526 | 34 | 9/30/2026 |
| 3.0.0-alpha.524 | 48 | 9/27/2026 |
| 3.0.0-alpha.520 | 53 | 9/25/2026 |
| 3.0.0-alpha.516 | 85 | 9/22/2026 |
| 3.0.0-alpha.513 | 50 | 9/22/2026 |
| 3.0.0-alpha.505 | 60 | 9/13/2026 |
| 3.0.0-alpha.495 | 120 | 8/24/2026 |
| 3.0.0-alpha.458 | 102 | 8/19/2026 |
| 3.0.0-alpha.455 | 117 | 8/19/2026 |
| 3.0.0-alpha.449 | 73 | 8/18/2026 |
| 3.0.0-alpha.447 | 70 | 8/18/2026 |
| 3.0.0-alpha.432 | 83 | 7/6/2026 |
| 3.0.0-alpha.428 | 81 | 7/3/2026 |
| 3.0.0-alpha.425 | 82 | 6/27/2026 |
| 3.0.0-alpha.419 | 90 | 6/24/2026 |
| 3.0.0-alpha.418 | 84 | 6/23/2026 |
| 3.0.0-alpha.417 | 86 | 6/23/2026 |
| 3.0.0-alpha.397 | 81 | 6/18/2026 |
| 3.0.0-alpha.396 | 83 | 6/18/2026 |
Loading failed