/// <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);
     }
 }
示例#2
0
        public void Add(ClientTransport transport)
        {
            if (transport == null)
            {
                return;
            }

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