C# Class SevenDigital.Messaging.MessageReceiving.Receiver

Standard node factory for messaging. You don't need to create this yourself, use `MessagingSystem.Receiver()`
The Receiver is a factory class for ReceiverNodes. It provides the API point to decide to use a unique endpoint name (Listen) or a specific endpoint name (TakeFrom)
Inheritance: IReceiver, IReceiverControl, IReceiverTesting
Datei anzeigen Open project: i-e-b/SevenDigital.Messaging Class Usage Examples

Public Methods

Method Description
DeleteNameFilter ( string queueName ) : bool

Returns true if a queue name would be deleted if DeleteIntegrationEndpointsOnShutdown is set

Dispose ( ) : void

Shutdown all nodes.

Listen ( Action bindings ) : IReceiverNode

Map handlers to a listener on a unique endpoint. All listeners mapped this way will receive all messages.

Receiver ( IUniqueEndpointGenerator uniqueEndPointGenerator, IMessageRouter messageRouter, IPollingNodeFactory pollerFactory, IDispatcherFactory dispatchFactory ) : System

Create a new node factory. You don't need to create this yourself, use `MessagingSystem.Receiver()`

Remove ( IReceiverNode node ) : void

Unregister a node from the shutdown list

SetConcurrentHandlers ( int max ) : void

Set maximum concurrent handlers per receiver node

Shutdown ( ) : void

Close all receiver nodes that have been created

TakeFrom ( Endpoint endpoint, Action bindings ) : IReceiverNode

Map handlers to a listener on a named endpoint. All other listeners on this endpoint will compete for messages (i.e. only one listener will get a given message)

Private Methods

Method Description
DeleteIntegrationEndpoints ( ) : void
IReceiverTesting ( ) : IEnumerable
Ignore ( ) : void
PurgeEndpoint ( Endpoint endpoint ) : void

Method Details

DeleteNameFilter() public method

Returns true if a queue name would be deleted if DeleteIntegrationEndpointsOnShutdown is set
public DeleteNameFilter ( string queueName ) : bool
queueName string
return bool

Dispose() public method

Shutdown all nodes.
public Dispose ( ) : void
return void

Listen() public method

Map handlers to a listener on a unique endpoint. All listeners mapped this way will receive all messages.
public Listen ( Action bindings ) : IReceiverNode
bindings Action
return IReceiverNode

Receiver() public method

Create a new node factory. You don't need to create this yourself, use `MessagingSystem.Receiver()`
public Receiver ( IUniqueEndpointGenerator uniqueEndPointGenerator, IMessageRouter messageRouter, IPollingNodeFactory pollerFactory, IDispatcherFactory dispatchFactory ) : System
uniqueEndPointGenerator IUniqueEndpointGenerator
messageRouter IMessageRouter
pollerFactory IPollingNodeFactory
dispatchFactory IDispatcherFactory
return System

Remove() public method

Unregister a node from the shutdown list
public Remove ( IReceiverNode node ) : void
node IReceiverNode
return void

SetConcurrentHandlers() public method

Set maximum concurrent handlers per receiver node
public SetConcurrentHandlers ( int max ) : void
max int
return void

Shutdown() public method

Close all receiver nodes that have been created
public Shutdown ( ) : void
return void

TakeFrom() public method

Map handlers to a listener on a named endpoint. All other listeners on this endpoint will compete for messages (i.e. only one listener will get a given message)
public TakeFrom ( Endpoint endpoint, Action bindings ) : IReceiverNode
endpoint Endpoint
bindings Action
return IReceiverNode