示例#1
0
        private void Register <T>(object recipient, Action <T> action, object context)
        {
            var key = new MessengerKey(recipient, context);

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