public ITicketSender GetTicketSender(SdkTicketType ticketType) { if (_ticketSenders.TryGetValue(ticketType, out var sender)) { return(sender); } return(null); }
public TicketCacheItem(SdkTicketType type, string ticketId, string correlationId, string replyRoutingKey, string exchangeName, object custom = null) { TicketType = type; TicketId = ticketId; CorrelationId = correlationId; ReplyRoutingKey = replyRoutingKey; ExchangeName = exchangeName; Custom = custom; Timestamp = DateTime.Now; }