C# Class pegasus.eventbus.client.Subscription

Datei anzeigen Open project: Berico-Technologies/Event-Bus

Public Methods

Method Description
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.

Method Details

Subscription() public method

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. ///
return System

Subscription() public method

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
return System

Subscription() public method

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
return System

Subscription() public method

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.
return System