Class ScatterGather<TRequest, TResponse, TResult>
- Namespace
- PatternKit.Messaging.Routing
- Assembly
- PatternKit.Core.dll
Sends one request to multiple recipients and aggregates their replies.
public sealed class ScatterGather<TRequest, TResponse, TResult>
Type Parameters
TRequestTResponseTResult
- Inheritance
-
ScatterGather<TRequest, TResponse, TResult>
- Inherited Members
Methods
Create(string)
public static ScatterGather<TRequest, TResponse, TResult>.Builder Create(string name = "scatter-gather")
Parameters
namestring
Returns
- ScatterGather<TRequest, TResponse, TResult>.Builder
Dispatch(Message<TRequest>, MessageContext?)
public ScatterGatherResult<TResponse, TResult> Dispatch(Message<TRequest> message, MessageContext? context = null)
Parameters
messageMessage<TRequest>contextMessageContext
Returns
- ScatterGatherResult<TResponse, TResult>