Esempio n. 1
0
 /// <summary>
 /// Adds a new <see cref="ClientTransport"/> into this registry.
 /// </summary>
 public void Add(ClientTransport transport)
 {
     if (transport != null)
     {
         _transports[transport.Name] = transport;
         _allowed.Add(transport.Name);
     }
 }
Esempio n. 2
0
        public void Add(ClientTransport transport)
        {
            if (transport == null)
            {
                return;
            }

            _transports[transport.Name] = transport;
            _allowed.Add(transport.Name);
        }