DomainRelay.Abstractions
2.0.0
See the version list below for details.
dotnet add package DomainRelay.Abstractions --version 2.0.0
NuGet\Install-Package DomainRelay.Abstractions -Version 2.0.0
<PackageReference Include="DomainRelay.Abstractions" Version="2.0.0" />
<PackageVersion Include="DomainRelay.Abstractions" Version="2.0.0" />
<PackageReference Include="DomainRelay.Abstractions" />
paket add DomainRelay.Abstractions --version 2.0.0
#r "nuget: DomainRelay.Abstractions, 2.0.0"
#:package DomainRelay.Abstractions@2.0.0
#addin nuget:?package=DomainRelay.Abstractions&version=2.0.0
#tool nuget:?package=DomainRelay.Abstractions&version=2.0.0
DomainRelay.Abstractions
Contracts used by DomainRelay (MediatR-style API surface):
IMediatorIRequest<TResponse>/IRequestHandler<TRequest, TResponse>INotification/INotificationHandler<TNotification>IPipelineBehavior<TRequest, TResponse>Unit
This package has no DI or runtime implementation. For the mediator implementation, install DomainRelay and DomainRelay.DependencyInjection.
Requests (Commands/Queries)
public sealed record CreateUser(string Email) : IRequest<Unit>;
public sealed class CreateUserHandler : IRequestHandler<CreateUser, Unit>
{
public Task<Unit> Handle(CreateUser request, CancellationToken ct)
=> Task.FromResult(Unit.Value);
}
Notifications (Domain Events)
public sealed record UserCreated(Guid UserId) : INotification;
public sealed class SendWelcomeEmail : INotificationHandler<UserCreated>
{
public Task Handle(UserCreated notification, CancellationToken ct)
=> Task.CompletedTask;
}
Pipeline behaviors
public sealed class TimingBehavior<TRequest, TResponse> : IPipelineBehavior<TRequest, TResponse>
where TRequest : IRequest<TResponse>
{
public Task<TResponse> Handle(TRequest request, CancellationToken ct, HandlerDelegate<TResponse> next)
=> next();
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on DomainRelay.Abstractions:
| Package | Downloads |
|---|---|
|
DomainRelay
DomainRelay core mediator implementation. |
|
|
DomainRelay.DependencyInjection
Microsoft.Extensions.DependencyInjection integration for DomainRelay. |
|
|
DomainRelay.EFCore
EF Core transaction + premium Outbox for DomainRelay. |
|
|
DomainRelay.Diagnostics
Diagnostics (Activity/Tracing) behavior for DomainRelay. |
|
|
DomainRelay.Validation
FluentValidation pipeline behavior for DomainRelay. |
GitHub repositories
This package is not used by any popular GitHub repositories.