public ReceiverService(IEventSubscriber <RegisterPlotEvent> eventSubscriber, IEventReceived <RegisterPlotEvent> eventReceived, ILogger <ReceiverService> logger) { this.eventSubscriber = eventSubscriber; this.eventReceived = eventReceived; this.logger = logger; }
public void Subscribe(IEventReceived <T> eventReceived) { this.listEventReceived.Add(eventReceived); }