public void Invoke(object sender, MercuryEventBase e) { if (evts != null) { evts(sender, e); } }
public void Broadcast(int token, object sender, MercuryEventBase e) { if (_recentSession == null || _recentSession.sessionId != token) { _recentSession = _sessionSlots[token]; if (_recentSession != null) { _recentSession.Invoke(sender, e); } } else { _recentSession.Invoke(sender, e); } e.Release(); }