コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: MessageType.cs プロジェクト: petxo/HermEsb
 /// <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);
 }