private void HandleEventCall(EventCall eventCall) { if (eventCall.IsEventRegistration()) { if (eventCall.IsEventRaiser()) { this.RaiseEvent(eventCall); } else { this.AddEventListener(eventCall); } } else { this.RemoveEventListener(eventCall); } }
private protected override bool Matches(EventCall eventCall) => eventCall.Event.Name == this.eventName && eventCall.IsEventSubscription() && !eventCall.IsEventRaiser();
private protected override bool Matches(EventCall eventCall) => eventCall.IsEventSubscription() && !eventCall.IsEventRaiser();