Soenneker.Coordinators.Entities
11.0.486
Prefix Reserved
dotnet add package Soenneker.Coordinators.Entities --version 11.0.486
NuGet\Install-Package Soenneker.Coordinators.Entities -Version 11.0.486
<PackageReference Include="Soenneker.Coordinators.Entities" Version="11.0.486" />
<PackageVersion Include="Soenneker.Coordinators.Entities" Version="11.0.486" />
<PackageReference Include="Soenneker.Coordinators.Entities" />
paket add Soenneker.Coordinators.Entities --version 11.0.486
#r "nuget: Soenneker.Coordinators.Entities, 11.0.486"
#:package Soenneker.Coordinators.Entities@11.0.486
#addin nuget:?package=Soenneker.Coordinators.Entities&version=11.0.486
#tool nuget:?package=Soenneker.Coordinators.Entities&version=11.0.486
Soenneker.Coordinators.Entities
Defines a generic CRUD coordinator contract and an abstract base class for application-specific entity coordinators.
Install
dotnet add package Soenneker.Coordinators.Entities
Implement a coordinator
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using Soenneker.Coordinators.Entities;
using Soenneker.Coordinators.Entities.Abstract;
public sealed class CustomerCoordinator : EntitiesCoordinator<CustomerRequest, CustomerResponse>
{
private readonly ICustomerRepository _repository;
public CustomerCoordinator(
IConfiguration configuration,
ILogger<CustomerCoordinator> logger,
ICustomerRepository repository)
: base(configuration, logger)
{
_repository = repository;
}
public override ValueTask<CustomerResponse> Get(string id, CancellationToken cancellationToken = default)
{
return _repository.Get(id, cancellationToken);
}
}
The base methods are virtual and throw NotSupportedException. Override every operation your coordinator supports; leaving a method unchanged explicitly makes that operation unsupported.
Registration
This package does not register open or closed generic services. Register each application implementation explicitly:
services.AddScoped<
IEntitiesCoordinator<CustomerRequest, CustomerResponse>,
CustomerCoordinator>();
Contract
| API | What it does | Result / important behavior |
|---|---|---|
Get(id, cancellationToken) |
Retrieves one entity | TResponse |
GetAll(options, cancellationToken) |
Retrieves a filtered, sorted, or paged collection as interpreted by the implementation | PagedResult<TResponse> |
Create(request, cancellationToken) |
Creates an entity | TResponse |
Update(id, request, cancellationToken) |
Updates an entity | TResponse |
Delete(id, cancellationToken) |
Deletes an entity | Completion only |
Practical notes
- The base class supplies protected
ConfigandLoggerproperties throughSoenneker.Coordinators.Base; it has no repository dependency or persistence behavior. RequestDataOptionsis only part of the contract. Filtering, sorting, paging, and validation are the implementation's responsibility.- Cancellation tokens must be forwarded by overrides to their underlying database, HTTP, or queue operations.
- Decide and document each implementation's not-found, conflict, validation, and concurrency behavior; the generic contract does not prescribe them.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Coordinators.Base (>= 11.0.1165)
- Soenneker.Dtos.RequestDataOptions (>= 11.0.253)
- Soenneker.Dtos.Results.Paged (>= 11.0.71)
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 |
|---|---|---|
| 11.0.486 | 0 | 11/14/2026 |
| 11.0.485 | 116 | 11/11/2026 |
| 11.0.484 | 50 | 11/11/2026 |
| 11.0.483 | 62 | 11/11/2026 |
| 11.0.482 | 50 | 11/11/2026 |
| 11.0.481 | 46 | 11/11/2026 |
| 11.0.480 | 51 | 11/11/2026 |
| 11.0.479 | 67 | 11/11/2026 |
| 11.0.478 | 70 | 11/11/2026 |
| 11.0.477 | 59 | 11/10/2026 |
| 11.0.476 | 345 | 10/27/2026 |
| 11.0.475 | 105 | 10/27/2026 |
| 11.0.474 | 109 | 10/27/2026 |
| 11.0.473 | 93 | 10/26/2026 |
| 11.0.472 | 103 | 10/26/2026 |
| 11.0.470 | 95 | 10/26/2026 |
| 11.0.469 | 95 | 10/26/2026 |
| 11.0.468 | 98 | 10/26/2026 |
| 11.0.467 | 99 | 10/26/2026 |
| 11.0.466 | 95 | 10/26/2026 |
Update dependency Soenneker.Dtos.RequestDataOptions to 11.0.253 (#1088)