Пример #1
0
 private T GetMessageContextByKey <T>(string key)
 {
     if (MessageContextImpl.TryGetValue(key, out var output))
     {
         return((T)output);
     }
     else
     {
         return(default);
Пример #2
0
        internal InboundBrokeredMessage UpdateVia(string via)
        {
            var key = MessageBrokers.MessageContext.Via;

            if (MessageContextImpl.ContainsKey(key))
            {
                var currentVia = (string)MessageContext[key];
                if (!(string.IsNullOrWhiteSpace(via)))
                {
                    currentVia += "," + via;
                    MessageContextImpl[key] = currentVia;
                }
            }
            else
            {
                MessageContextImpl[key] = via;
            }
            return(this);
        }
Пример #3
0
				public _IMessageSender_22(MessageContextImpl _enclosing)
				{
					this._enclosing = _enclosing;
				}
Пример #4
0
 public _IMessageSender_22(MessageContextImpl _enclosing)
 {
     this._enclosing = _enclosing;
 }