Mediora.Contracts 1.0.0

dotnet add package Mediora.Contracts --version 1.0.0
                    
NuGet\Install-Package Mediora.Contracts -Version 1.0.0
                    
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="Mediora.Contracts" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mediora.Contracts" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Mediora.Contracts" />
                    
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 Mediora.Contracts --version 1.0.0
                    
#r "nuget: Mediora.Contracts, 1.0.0"
                    
#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 Mediora.Contracts@1.0.0
                    
#: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=Mediora.Contracts&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Mediora.Contracts&version=1.0.0
                    
Install as a Cake Tool

Mediora.Contracts

Mediora.Contracts contains the core mediator contracts used by Mediora-based applications.

Use this package when you want to reference request, notification, stream, and pipeline abstractions without taking a dependency on the full Mediora implementation package.

Install

dotnet add package Mediora.Contracts --prerelease

Included abstractions

  • IRequest<TResponse> and IRequest
  • IRequestHandler<TRequest, TResponse> and IRequestHandler<TRequest>
  • INotification and INotificationHandler<TNotification>
  • IStreamRequest<TResponse> and IStreamRequestHandler<TRequest, TResponse>
  • IPipelineBehavior<TRequest, TResponse>
  • IStreamPipelineBehavior<TRequest, TResponse>
  • ISender, IPublisher, and IMediator

Example

using Mediora;

public sealed record CreateOrder(Guid CustomerId, decimal Total) : IRequest<Guid>;

public sealed class CreateOrderHandler : IRequestHandler<CreateOrder, Guid>
{
    public Task<Guid> Handle(CreateOrder request, CancellationToken cancellationToken)
    {
        // Application logic here
        return Task.FromResult(Guid.NewGuid());
    }
}

If you need runtime dispatching and DI integration, install Mediora.

License

MIT

Product 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

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Mediora.Contracts:

Package Downloads
Mediora

Lightweight mediator library for .NET focused on predictable behavior and clean architecture workflows.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 136 4/29/2026