示例#1
0
        private void AddListener(XUri uri, AuthenticationSchemes authenticationSheme)
        {
            switch (uri.Scheme.ToLowerInvariant())
            {
            case Scheme.HTTP:
            case Scheme.HTTPS: {
                HttpTransport transport = new Http.HttpTransport(_env, uri, authenticationSheme);
                transport.Startup();
                _transports.Add(transport);
            }
            break;

            default:
                throw new ArgumentException("unsupported scheme: " + uri.Scheme);
            }
        }
示例#2
0
 private void AddListener(XUri uri, AuthenticationSchemes authenticationSheme) {
     switch(uri.Scheme.ToLowerInvariant()) {
     case Scheme.HTTP:
     case Scheme.HTTPS: {
             HttpTransport transport = new HttpTransport(_env, uri, authenticationSheme, _dreamInParamAuthtoken);
             transport.Startup();
             _transports.Add(transport);
         }
         break;
     default:
         throw new ArgumentException("unsupported scheme: " + uri.Scheme);
     }
 }