C# Class paramore.brighter.commandprocessor.HandlerConfiguration

Class HandlerConfiguration
Show file Open project: iancooper/Paramore Class Usage Examples

Public Methods

Method Description
HandlerConfiguration ( )

Initializes a new instance of the HandlerConfiguration class. The default constructor is used when we want to create an empty handler configuration. Normally this is only useful for a ControlBusSender command processor, which posts all of its requests and does not have a local handler. As you cannot se the HandlerFactory and SubscriberRegistry post-creation, don't use this constructor in uses cases where you want anything other than an empty configuration.

HandlerConfiguration ( IAmASubscriberRegistry subscriberRegistry, IAmAHandlerFactory handlerFactory )

Initializes a new instance of the HandlerConfiguration class. We use the IAmASubscriberRegistry instance to look up subscribers for messages when dispatching. Use SubscriberRegistry unless you have some reason to override. We expect a CommandProcessor.Send{T}(T) to have one registered handler We use the

HandlerConfiguration ( IAmASubscriberRegistry subscriberRegistry, IAmAHandlerFactory handlerFactory, IAmAHandlerFactoryAsync asyncHandlerFactory )

Initializes a new instance of the HandlerConfiguration class. We use the IAmASubscriberRegistry instance to look up subscribers for messages when dispatching. Use SubscriberRegistry unless you have some reason to override. We expect a CommandProcessor.Send{T}(T) to have one registered handler We use the

HandlerConfiguration ( IAmASubscriberRegistry subscriberRegistry, IAmAHandlerFactoryAsync asyncHandlerFactory )

Initializes a new instance of the HandlerConfiguration class. We use the IAmASubscriberRegistry instance to look up subscribers for messages when dispatching. Use SubscriberRegistry unless you have some reason to override. We expect a CommandProcessor.Send{T}(T) to have one registered handler We use the

Method Details

HandlerConfiguration() public method

Initializes a new instance of the HandlerConfiguration class. The default constructor is used when we want to create an empty handler configuration. Normally this is only useful for a ControlBusSender command processor, which posts all of its requests and does not have a local handler. As you cannot se the HandlerFactory and SubscriberRegistry post-creation, don't use this constructor in uses cases where you want anything other than an empty configuration.

HandlerConfiguration() public method

Initializes a new instance of the HandlerConfiguration class. We use the IAmASubscriberRegistry instance to look up subscribers for messages when dispatching. Use SubscriberRegistry unless you have some reason to override. We expect a CommandProcessor.Send{T}(T) to have one registered handler We use the
public HandlerConfiguration ( IAmASubscriberRegistry subscriberRegistry, IAmAHandlerFactory handlerFactory )
subscriberRegistry IAmASubscriberRegistry The subscriber registry.
handlerFactory IAmAHandlerFactory The handler factory.

HandlerConfiguration() public method

Initializes a new instance of the HandlerConfiguration class. We use the IAmASubscriberRegistry instance to look up subscribers for messages when dispatching. Use SubscriberRegistry unless you have some reason to override. We expect a CommandProcessor.Send{T}(T) to have one registered handler We use the
public HandlerConfiguration ( IAmASubscriberRegistry subscriberRegistry, IAmAHandlerFactory handlerFactory, IAmAHandlerFactoryAsync asyncHandlerFactory )
subscriberRegistry IAmASubscriberRegistry The subscriber registry.
handlerFactory IAmAHandlerFactory The handler factory.
asyncHandlerFactory IAmAHandlerFactoryAsync The async handler factory.

HandlerConfiguration() public method

Initializes a new instance of the HandlerConfiguration class. We use the IAmASubscriberRegistry instance to look up subscribers for messages when dispatching. Use SubscriberRegistry unless you have some reason to override. We expect a CommandProcessor.Send{T}(T) to have one registered handler We use the
public HandlerConfiguration ( IAmASubscriberRegistry subscriberRegistry, IAmAHandlerFactoryAsync asyncHandlerFactory )
subscriberRegistry IAmASubscriberRegistry The subscriber registry.
asyncHandlerFactory IAmAHandlerFactoryAsync The async handler factory.