Kck.Pipeline.Abstractions
4.8.0
See the version list below for details.
dotnet add package Kck.Pipeline.Abstractions --version 4.8.0
NuGet\Install-Package Kck.Pipeline.Abstractions -Version 4.8.0
<PackageReference Include="Kck.Pipeline.Abstractions" Version="4.8.0" />
<PackageVersion Include="Kck.Pipeline.Abstractions" Version="4.8.0" />
<PackageReference Include="Kck.Pipeline.Abstractions" />
paket add Kck.Pipeline.Abstractions --version 4.8.0
#r "nuget: Kck.Pipeline.Abstractions, 4.8.0"
#:package Kck.Pipeline.Abstractions@4.8.0
#addin nuget:?package=Kck.Pipeline.Abstractions&version=4.8.0
#tool nuget:?package=Kck.Pipeline.Abstractions&version=4.8.0
Kck.Pipeline.Abstractions
Pipeline behavior marker interfaces — implement ICachableRequest, ILoggableRequest, ISecuredRequest, or ITransactionalRequest on a command/query to opt into cross-cutting behaviors automatically.
Installation
dotnet add package Kck.Pipeline.Abstractions
Quick Start
using Kck.Pipeline.Abstractions;
using Mediator;
// 1. A query that opts into caching
public sealed record GetProductQuery(int ProductId) : IQuery<Product?>, ICachableRequest
{
public string CacheKey => $"product:{ProductId}";
public bool BypassCache => false;
public string? CacheGroupKey => "products";
public TimeSpan? SlidingExpiration => TimeSpan.FromMinutes(10);
}
// 2. A command that requires a role and runs in a transaction
public sealed record PlaceOrderCommand(Guid CustomerId, IReadOnlyList<Guid> ProductIds)
: ICommand<Guid>, ISecuredRequest, ITransactionalRequest
{
public string[] Roles => ["customer"];
}
// 3. A command that is logged
public sealed record CancelOrderCommand(Guid OrderId) : ICommand, ILoggableRequest;
// The Kck.Pipeline.Mediator behaviors (AddKckMediatorPipeline) act on these markers; requests without a marker skip
// the matching behavior.
Configuration
This is a marker-interfaces package — no configuration required. Pipeline behavior implementations are registered by Kck.Pipeline.Mediator.
Resources
| 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Kck.Pipeline.Abstractions:
| Package | Downloads |
|---|---|
|
Kck.Core.Abstractions
Core domain primitives for the Kck framework. Provides Entity<TId>/AuditableEntity<TId>/FullEntity<TId> hierarchy, Result<T>/Error pattern, Paginate<T> pagination, domain events, and pipeline marker interfaces. |
GitHub repositories
This package is not used by any popular GitHub repositories.