Вопрос

I would like to clarify the role of the "publisher" in the Event Aggregator design pattern.

My current solution handles .NET data events, such as XmlNode events occuring in a XmlDocument.

Question: In the Event Aggregator design pattern, what is considered the publishers?

Это было полезно?

Решение

In Event Aggregator pattern, you have you types of publishers:

  1. Source of events which the aggregator is an observer/subscriber to,
  2. The aggregator itself, which has it's own subscribers

So your data sources are publishers.

take a look to this short article by Martin Fowler:

http://martinfowler.com/eaaDev/EventAggregator.html

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top