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
Afficher le fichier Open project: iancooper/Paramore

Méthodes publiques

Méthode 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

Méthode Description
DispatchBuilder ( ) : System.Collections.Generic

Method Details

Build() public méthode

Builds this instance.
public Build ( ) : Dispatcher
Résultat Dispatcher

ChannelFactory() public méthode

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.
Résultat INeedAListOfConnections

CommandProcessor() public méthode

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.
Résultat INeedAMessageMapper

Connections() public méthode

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

MessageMappers() public méthode

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.
Résultat INeedAChannelFactory

With() public static méthode

Begins the fluent interface
public static With ( ) : INeedACommandProcessor
Résultat INeedACommandProcessor