Example #1
0
 public void Invoke(object sender, MercuryEventBase e)
 {
     if (evts != null)
     {
         evts(sender, e);
     }
 }
Example #2
0
        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();
        }