C# 클래스 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)
상속: IReceiver, IReceiverControl, IReceiverTesting
파일 보기 프로젝트 열기: i-e-b/SevenDigital.Messaging 1 사용 예제들

공개 메소드들

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

비공개 메소드들

메소드 설명
DeleteIntegrationEndpoints ( ) : void
IReceiverTesting ( ) : IEnumerable
Ignore ( ) : void
PurgeEndpoint ( Endpoint endpoint ) : void

메소드 상세

DeleteNameFilter() 공개 메소드

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

Dispose() 공개 메소드

Shutdown all nodes.
public Dispose ( ) : void
리턴 void

Listen() 공개 메소드

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
리턴 IReceiverNode

Receiver() 공개 메소드

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
리턴 System

Remove() 공개 메소드

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

SetConcurrentHandlers() 공개 메소드

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

Shutdown() 공개 메소드

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

TakeFrom() 공개 메소드

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
리턴 IReceiverNode