/// <summary> /// Monitorables the sender gateway_ sent message. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The args.</param> private void MonitorableSenderGatewaySentMessage(object sender, MessageGatewayEventHandlerArgs args) { var messageType = new MessageType { FullName = args.MessageType }; _messageTypes.GetOrAdd(messageType, messageType); }
/// <summary> /// Equalses the specified other. /// </summary> /// <param name="other">The other.</param> /// <returns></returns> public bool Equals(MessageType other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.FullName, FullName); }