コード例 #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));
 }