Пример #1
0
 public ReceiverService(IEventSubscriber <RegisterPlotEvent> eventSubscriber,
                        IEventReceived <RegisterPlotEvent> eventReceived,
                        ILogger <ReceiverService> logger)
 {
     this.eventSubscriber = eventSubscriber;
     this.eventReceived   = eventReceived;
     this.logger          = logger;
 }
Пример #2
0
 public void Subscribe(IEventReceived <T> eventReceived)
 {
     this.listEventReceived.Add(eventReceived);
 }