Ejemplo n.º 1
0
 /// <inheritdoc />
 public void Bind <TEventHub1, TEventHub2>(IPublisher <TEventHub1, TEventHub2> publisher)
     where TEventHub1 : EventHubBase <TEventHub1>
     where TEventHub2 : EventHubBase <TEventHub2>
 {
     publisher.GetEventSource1().Event += GetHubAction <TEventHub1>;
     publisher.GetEventSource2().Event += GetHubAction <TEventHub2>;
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 public void Bind <TEventHub1, TEventHub2, TEventHub3, TEventHub4>(IPublisher <TEventHub1, TEventHub2, TEventHub3, TEventHub4> publisher)
     where TEventHub1 : EventHubBase <TEventHub1>
     where TEventHub2 : EventHubBase <TEventHub2>
     where TEventHub3 : EventHubBase <TEventHub3>
     where TEventHub4 : EventHubBase <TEventHub4>
 {
     publisher.GetEventSource1().Event += GetHubAction <TEventHub1>;
     publisher.GetEventSource2().Event += GetHubAction <TEventHub2>;
     publisher.GetEventSource3().Event += GetHubAction <TEventHub3>;
     publisher.GetEventSource4().Event += GetHubAction <TEventHub4>;
 }