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); } }
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); } }