private T GetMessageContextByKey <T>(string key) { if (MessageContextImpl.TryGetValue(key, out var output)) { return((T)output); } else { return(default);
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); }
public _IMessageSender_22(MessageContextImpl _enclosing) { this._enclosing = _enclosing; }