C# 클래스 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
상속: INeedALogger, INeedACommandProcessor, INeedAChannelFactory, INeedAMessageMapper, INeedAListOfConnections, IAmADispatchBuilder
파일 보기 프로젝트 열기: iancooper/Paramore

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
DispatchBuilder ( ) : System.Collections.Generic

메소드 상세

Build() 공개 메소드

Builds this instance.
public Build ( ) : Dispatcher
리턴 Dispatcher

ChannelFactory() 공개 메소드

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.
리턴 INeedAListOfConnections

CommandProcessor() 공개 메소드

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.
리턴 INeedAMessageMapper

Connections() 공개 메소드

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

MessageMappers() 공개 메소드

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.
리턴 INeedAChannelFactory

With() 공개 정적인 메소드

Begins the fluent interface
public static With ( ) : INeedACommandProcessor
리턴 INeedACommandProcessor