private void HandleEventCall(EventCall eventCall)
 {
     if (eventCall.IsEventRegistration())
     {
         if (eventCall.IsEventRaiser())
         {
             this.RaiseEvent(eventCall);
         }
         else
         {
             this.AddEventListener(eventCall);
         }
     }
     else
     {
         this.RemoveEventListener(eventCall);
     }
 }
 private void HandleEventCall(EventCall eventCall)
 {
     if (eventCall.IsEventRegistration())
     {
         if (eventCall.IsEventRaiser())
         {
             this.RaiseEvent(eventCall);
         }
         else
         {
             this.AddEventListener(eventCall);
         }
     }
     else
     {
         this.RemoveEventListener(eventCall);
     }
 }
Пример #3
0
 private protected override bool Matches(EventCall eventCall) => eventCall.Event.Name == this.eventName && eventCall.IsEventSubscription() && !eventCall.IsEventRaiser();
Пример #4
0
 private protected override bool Matches(EventCall eventCall) => eventCall.IsEventSubscription() && !eventCall.IsEventRaiser();