DomainRelay.Abstractions 3.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package DomainRelay.Abstractions --version 3.0.1
                    
NuGet\Install-Package DomainRelay.Abstractions -Version 3.0.1
                    
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="DomainRelay.Abstractions" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DomainRelay.Abstractions" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="DomainRelay.Abstractions" />
                    
Project file
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 DomainRelay.Abstractions --version 3.0.1
                    
#r "nuget: DomainRelay.Abstractions, 3.0.1"
                    
#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 DomainRelay.Abstractions@3.0.1
                    
#: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=DomainRelay.Abstractions&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=DomainRelay.Abstractions&version=3.0.1
                    
Install as a Cake Tool

DomainRelay.Abstractions

Contracts used by DomainRelay (MediatR-style API surface):

  • IMediator
  • IRequest<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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.Validation

FluentValidation pipeline behavior for DomainRelay.

DomainRelay.Diagnostics

Diagnostics (Activity/Tracing) behavior for DomainRelay.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.3 161 5/25/2026
3.1.2 153 5/24/2026
3.1.1 335 4/26/2026
3.1.0 219 4/25/2026
3.0.1 221 4/24/2026
3.0.0 225 4/24/2026
2.0.1 486 3/6/2026
2.0.0 184 3/5/2026
1.0.2-alpha.4 68 3/5/2026
1.0.1-alpha.4 64 3/5/2026
1.0.0 185 3/5/2026