Table of Contents

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

TRequest
TResponse
TResult
Inheritance
ScatterGather<TRequest, TResponse, TResult>
Inherited Members

Methods

Create(string)

public static ScatterGather<TRequest, TResponse, TResult>.Builder Create(string name = "scatter-gather")

Parameters

name string

Returns

ScatterGather<TRequest, TResponse, TResult>.Builder

Dispatch(Message<TRequest>, MessageContext?)

public ScatterGatherResult<TResponse, TResult> Dispatch(Message<TRequest> message, MessageContext? context = null)

Parameters

message Message<TRequest>
context MessageContext

Returns

ScatterGatherResult<TResponse, TResult>