ivanpaulovich / FluentMediator

:twisted_rightwards_arrows: FluentMediator is an unobtrusive library that allows developers to build custom pipelines for Commands, Queries and Events.
http://paulovich.net/FluentMediator/
Apache License 2.0
192 stars 17 forks source link

How to make named pipelines? #2

Closed ivanpaulovich closed 5 years ago

ivanpaulovich commented 5 years ago

I wish to Send or Publish to a named pipeline

mikesol commented 5 years ago

What would the use case be here? Would the name be passed as a third argument to the function with the signature (handler, request)?

ivanpaulovich commented 5 years ago

HI @mikesol,

The usage would be as a new argument for the Send<T>() and Publish() methods.

The current implementation uses a Dictionary of pipelines with the Request Type as Key, it would be nice that for every RequestType would exists a List of named Pipelines.

This changes would add fine grained control to the developer.

mikesol commented 5 years ago

Got it. Is the idea then to have some sort of pattern matching like redis, ie if you have foo:bar foo:baz and bar:baz and then send to foo:* it will pick up the channels with the right prefix?

ivanpaulovich commented 5 years ago

Yes, that would be great!

ivanpaulovich commented 5 years ago

Find in release v0.4.3