C# 클래스 pegasus.eventbus.client.Subscription

파일 보기 프로젝트 열기: Berico-Technologies/Event-Bus

공개 메소드들

메소드 설명
Subscription ( IEnvelopeHandler envelopeHandler ) : System

Subscribes an EventHandler to receive one or more event types according to the value returned by the handler's EventHandler.HandledEventTypes property.

Subscription ( IEnvelopeHandler envelopeHandler, string queueName ) : System

Subscribes an EventHandler to a named queue to receive one or more event types according to the value returned by the handler's EventHandler.HandledEventTypes method. Named queues are necessary if a subscription is to be durable, in order to re-subscribe to the same queue of events. Named queues are also useful for establishing shared queues wherein multiple processes need to share the responsibility for handling events in the same queue. This can be useful for load balancing for example. Each message that enters the queue is guaranteed to be handled by only one of the shared subscribers.

Subscription ( IEventHandler eventHandler ) : System

Subscribes an IEventHandler to receive one or more event types according to the value returned by the handler's IEventHandler.HandledEventTypes property.

Subscription ( IEventHandler eventHandler, string queueName ) : System

Subscribes an to a named queue to receive one or more event types according to the value returned by the handler's EventHandler.HandledEventTypes property. Named queues are necessary if a subscription is to be durable, in order to re-subscribe to the same queue of events. Named queues are also useful for establishing shared queues wherein multiple processes need to share the responsibility for handling events in the same queue. This can be useful for load balancing for example. Each message that enters the queue is guaranteed to be handled by only one of the shared subscribers.

메소드 상세

Subscription() 공개 메소드

Subscribes an EventHandler to receive one or more event types according to the value returned by the handler's EventHandler.HandledEventTypes property.
public Subscription ( IEnvelopeHandler envelopeHandler ) : System
envelopeHandler IEnvelopeHandler /// The implementation that will handle the subscribed events. ///
리턴 System

Subscription() 공개 메소드

Subscribes an EventHandler to a named queue to receive one or more event types according to the value returned by the handler's EventHandler.HandledEventTypes method. Named queues are necessary if a subscription is to be durable, in order to re-subscribe to the same queue of events. Named queues are also useful for establishing shared queues wherein multiple processes need to share the responsibility for handling events in the same queue. This can be useful for load balancing for example. Each message that enters the queue is guaranteed to be handled by only one of the shared subscribers.
public Subscription ( IEnvelopeHandler envelopeHandler, string queueName ) : System
envelopeHandler IEnvelopeHandler
queueName string
리턴 System

Subscription() 공개 메소드

Subscribes an IEventHandler to receive one or more event types according to the value returned by the handler's IEventHandler.HandledEventTypes property.
public Subscription ( IEventHandler eventHandler ) : System
eventHandler IEventHandler
리턴 System

Subscription() 공개 메소드

Subscribes an to a named queue to receive one or more event types according to the value returned by the handler's EventHandler.HandledEventTypes property. Named queues are necessary if a subscription is to be durable, in order to re-subscribe to the same queue of events. Named queues are also useful for establishing shared queues wherein multiple processes need to share the responsibility for handling events in the same queue. This can be useful for load balancing for example. Each message that enters the queue is guaranteed to be handled by only one of the shared subscribers.
public Subscription ( IEventHandler eventHandler, string queueName ) : System
eventHandler IEventHandler /// The implementation that will handle the subscribed events. ///
queueName string The name of the queue to subscribe to.
리턴 System