public ITransport Create(ILog log, TransportInfo transportInfo, Action onFailure)
 {
     lock (m_Transports)
     {
         InMemoryTransport transport;
         if (!m_Transports.TryGetValue(transportInfo, out transport))
         {
             transport = new InMemoryTransport();
             m_Transports.Add(transportInfo, transport);
         }
         return(transport);
     }
 }
        public ITransport Create(TransportInfo transportInfo, Action onFailure)
        {
            lock (m_Transports)
            {
                if (m_Transports.TryGetValue(transportInfo, out var transport))
                {
                    return(transport);
                }

                transport = new InMemoryTransport();
                m_Transports.Add(transportInfo, transport);
                return(transport);
            }
        }
Exemple #3
0
 public InMemorySession(InMemoryTransport queues)
 {
     m_Transport = queues;
 }