Exemple #1
0
 public ITicketSender GetTicketSender(SdkTicketType ticketType)
 {
     if (_ticketSenders.TryGetValue(ticketType, out var sender))
     {
         return(sender);
     }
     return(null);
 }
Exemple #2
0
 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;
 }