Flowify 0.5.1

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

Flowify

A simple and straightforward mediator and dispatching library for .NET 9+. Flowify helps decouple requests from handlers, promoting clean architecture and separation of concerns. It's a free, lightweight alternative to MediatR.

Features

  • Commands - With or without return values
  • Queries - Retrieve data efficiently
  • Notifications - Publish events to multiple handlers
  • Automatic Handler Registration - Scan assemblies and register handlers automatically
  • MediatR-Compatible - Same interfaces for easy migration

Installation

dotnet add reference path/to/Flowify/Flowify.csproj

Quick Example

using Flowify;
using Microsoft.Extensions.DependencyInjection;

// Define a command
public record CreateUserCommand(string Name, string Email) : IRequest<int>;

// Create a handler
public class CreateUserHandler : IRequestHandler<CreateUserCommand, int>
{
    public Task<int> Handle(CreateUserCommand request, CancellationToken cancellationToken)
    {
        // Your business logic here
        var userId = SaveUser(request.Name, request.Email);
        return Task.FromResult(userId);
    }
}

// Setup DI and use
var services = new ServiceCollection();
services.AddFlowify(typeof(Program).Assembly);
var provider = services.BuildServiceProvider();
var mediator = provider.GetRequiredService<IMediator>();

// Send command
var userId = await mediator.Send(new CreateUserCommand("John Doe", "john@example.com"));

More Examples

See the Examples folder for complete working examples including:

  • Commands with/without responses
  • Queries
  • Notifications with multiple handlers

License

MIT

Product Compatible and additional computed target framework versions.
.NET 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.3 133 1/27/2026
0.5.2 105 1/27/2026
0.5.1 98 1/27/2026
0.5.0 110 1/27/2026