Skip to content
Ivan Paulovich edited this page Oct 13, 2019 · 10 revisions

FluentMediator is an unobtrusive library that allows developers to build custom pipelines for Commands, Queries and Events. It will not require you to implement framework interfaces or to add dependencies to your domain events and handlers.

Finally a really loosely coupled mediator library was born!

How

FluentMediator works against the delegates you configured at the application startup, you are free to select any event type and event handler in your application, our library lives in the infrastructure layer. It will not leak abstractions to your domain and application use cases.

services.AddFluentMediator(builder => {
    builder.On<PingRequest>().Pipeline()
        .Call<IPingHandler>((handler, request) => handler.MyMethod(request))
        .Call<IPingHandler>((handler, request) => handler.MyLongMethod(request))
        .Return<PingResponse, IPingHandler>(
            (handler, request) => handler.MyOtherMethod(request)
        );
});

FluentMediator v0.X.X API Documentation

While FluentMediator is still on version 0.X its API could change, these changes are described here:

API Reference

Samples

Clone this wiki locally