Table of Contents

CreateRequestReply Method

Definition

Namespace
Savvyio
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/HandlerFactory.cs

CreateRequestReply<TRequest>(Action<IRequestReplyRegistry<TRequest>>)

Creates an instance of a Request-Reply/In-Out MEP activator responsible of invoking delegates that handles TRequest.

public static IRequestReplyActivator<TRequest> CreateRequestReply<TRequest>(Action<IRequestReplyRegistry<TRequest>> handlerRegistrar)

Parameters

handlerRegistrar Action<IRequestReplyRegistry<TRequest>>

The delegate responsible for registering delegates of type TRequest.

Returns

IRequestReplyActivator<TRequest>

An implementation of the IRequestReplyActivator<TRequest> interface responsible of invoking delegates that handles TRequest.

Type Parameters

TRequest

The type of the model to handle.