Esempio n. 1
0
        private void Register <T>(object recipient, Action <T> action, object context)
        {
            var key = new MessengerKey(recipient, context);

            Dictionary.TryAdd(key, action);
        }
Esempio n. 2
0
 protected bool Equals(MessengerKey otherKey)
 {
     return(Equals(Recipient, otherKey.Recipient) && Equals(Context, otherKey.Context));
 }