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

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 response
  • IHandleAsync<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 message
    • CorrelationId: Identifier for tracking related messages
    • CreatedAt: UTC timestamp of message creation
    • Message: Human-readable description
    • Code: Categorization or identification code
  • ResultBase: Represents operation results without a specific response

  • ResultBase<TResponse>: Represents operation results with a typed response

Enums

  • ResultStatus: Defines the outcome of an operation
    • Undefined: Status not set
    • Successful: Operation completed successfully
    • Failure: Operation failed
    • Invalid: Operation had invalid input
    • NotFound: 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
  • MiddleMan.Zero: Core implementation
  • MiddleMan.Zero.DependencyInjection: DI container registration
  • MiddleMan.Zero.AspNetCore.Mvc: ASP.NET Core MVC integration
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 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.
  • 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