MiddleMan.Zero.Abstractions
1.1.2
dotnet add package MiddleMan.Zero.Abstractions --version 1.1.2
NuGet\Install-Package MiddleMan.Zero.Abstractions -Version 1.1.2
<PackageReference Include="MiddleMan.Zero.Abstractions" Version="1.1.2" />
<PackageVersion Include="MiddleMan.Zero.Abstractions" Version="1.1.2" />
<PackageReference Include="MiddleMan.Zero.Abstractions" />
paket add MiddleMan.Zero.Abstractions --version 1.1.2
#r "nuget: MiddleMan.Zero.Abstractions, 1.1.2"
#:package MiddleMan.Zero.Abstractions@1.1.2
#addin nuget:?package=MiddleMan.Zero.Abstractions&version=1.1.2
#tool nuget:?package=MiddleMan.Zero.Abstractions&version=1.1.2
MiddleMan.Zero.Abstractions
Core abstractions and interfaces for the MiddleMan.Zero mediator pattern library.
Overview
This package contains the fundamental building blocks for implementing the mediator pattern in .NET applications. It defines the core interfaces, base classes, and types used across the MiddleMan.Zero ecosystem.
Key Components
Interfaces
IHandleAsync<TRequest>: Interface for handlers that process requests without returning a responseIHandleAsync<TRequest, TResponse>: Interface for handlers that process requests and return a typed response
Base Classes
MessageBase: Base class for all message types with common properties:Id: Unique identifier for the messageCorrelationId: Identifier for tracking related messagesCreatedAt: UTC timestamp of message creationMessage: Human-readable descriptionCode: Categorization or identification code
ResultBase: Represents operation results without a specific responseResultBase<TResponse>: Represents operation results with a typed response
Enums
ResultStatus: Defines the outcome of an operationUndefined: Status not setSuccessful: Operation completed successfullyFailure: Operation failedInvalid: Operation had invalid inputNotFound: Requested resource not found
Usage
This package is typically not used directly. Instead, reference it when building custom handlers or extending the MiddleMan.Zero framework.
using MiddleMan.Zero.Abstractions;
public class MyHandler : IHandleAsync<MyRequest, MyResponse>
{
public async Task<ResultBase<MyResponse>> HandleAsync(
MyRequest request,
CancellationToken cancellationToken = default)
{
// Implementation
}
}
Installation
dotnet add package MiddleMan.Zero.Abstractions
Dependencies
- .NET Standard 2.1 or higher
Related Packages
- MiddleMan.Zero: Core implementation
- MiddleMan.Zero.DependencyInjection: DI container registration
- MiddleMan.Zero.AspNetCore.Mvc: ASP.NET Core MVC integration
| 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 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.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on MiddleMan.Zero.Abstractions:
| Package | Downloads |
|---|---|
|
MiddleMan.Zero
Core implementation of the MiddleMan.Zero mediator pattern with handler base classes, validation pipeline, and built-in message types. |
|
|
MiddleMan.Zero.DependencyInjection
Dependency injection extensions for automatic registration of MiddleMan.Zero handlers in .NET applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.2 | 300 | 2/28/2026 |
| 1.1.2-rc.1 | 56 | 2/28/2026 |
| 1.1.1 | 216 | 2/18/2026 |
| 1.1.0 | 158 | 2/15/2026 |
| 1.0.0 | 143 | 2/5/2026 |