private void Register <T>(object recipient, Action <T> action, object context) { var key = new MessengerKey(recipient, context); Dictionary.TryAdd(key, action); }
protected bool Equals(MessengerKey otherKey) { return(Equals(Recipient, otherKey.Recipient) && Equals(Context, otherKey.Context)); }