C# Class paramore.brighter.serviceactivator.DispatchBuilder

Class DispatchBuilder. A fluent builder used to simplify construction of instances of the Dispatcher. Begin by calling With() and the syntax will then provide you with progressive interfaces to manage the requirements for a complete Dispatcher via Intellisense in the IDE. The intent is to make it easier to recognize those dependencies that you need to configure
Inheritance: INeedALogger, INeedACommandProcessor, INeedAChannelFactory, INeedAMessageMapper, INeedAListOfConnections, IAmADispatchBuilder
Mostra file Open project: iancooper/Paramore

Public Methods

Method Description
Build ( ) : Dispatcher

Builds this instance.

ChannelFactory ( IAmAChannelFactory channelFactory ) : INeedAListOfConnections

The channel factory - used to create channels. Generally an implementation of a specific Application Layer i.e.RabbitMQ for AMQP needs to provide an implementation of this factory to provide input and output channels that support sending messages over that layer. We provide an implementation for RabbitMQ for example.

CommandProcessor ( CommandProcessor theCommandProcessor ) : INeedAMessageMapper

The command processor used to send and publish messages to handlers by the service activator.

Connections ( IEnumerable connections ) : IAmADispatchBuilder

A list of connections i.e. mappings of channels to commands or events

MessageMappers ( IAmAMessageMapperRegistry theMessageMapperRegistry ) : INeedAChannelFactory

The message mappers used to map between commands, events, and on-the-wire handlers.

With ( ) : INeedACommandProcessor

Begins the fluent interface

Private Methods

Method Description
DispatchBuilder ( ) : System.Collections.Generic

Method Details

Build() public method

Builds this instance.
public Build ( ) : Dispatcher
return Dispatcher

ChannelFactory() public method

The channel factory - used to create channels. Generally an implementation of a specific Application Layer i.e.RabbitMQ for AMQP needs to provide an implementation of this factory to provide input and output channels that support sending messages over that layer. We provide an implementation for RabbitMQ for example.
public ChannelFactory ( IAmAChannelFactory channelFactory ) : INeedAListOfConnections
channelFactory IAmAChannelFactory The channel factory.
return INeedAListOfConnections

CommandProcessor() public method

The command processor used to send and publish messages to handlers by the service activator.
public CommandProcessor ( CommandProcessor theCommandProcessor ) : INeedAMessageMapper
theCommandProcessor CommandProcessor The command processor.
return INeedAMessageMapper

Connections() public method

A list of connections i.e. mappings of channels to commands or events
public Connections ( IEnumerable connections ) : IAmADispatchBuilder
connections IEnumerable The connections.
return IAmADispatchBuilder

MessageMappers() public method

The message mappers used to map between commands, events, and on-the-wire handlers.
public MessageMappers ( IAmAMessageMapperRegistry theMessageMapperRegistry ) : INeedAChannelFactory
theMessageMapperRegistry IAmAMessageMapperRegistry The message mapper registry.
return INeedAChannelFactory

With() public static method

Begins the fluent interface
public static With ( ) : INeedACommandProcessor
return INeedACommandProcessor