コード例 #1
0
        public RestClientBase(string serviceUrl, IRestAuthentication authentication)
        {
            Guard.NotNull("authentication", authentication);

            this.serviceUrl     = new Uri(EnsureTrailingSlash(serviceUrl));
            this.authentication = authentication;

            serializer = JsonSerializer.CreateDefault();
        }
コード例 #2
0
        public SecureRestClient(string baseUri, IRestAuthentication authentication, ServerCertificateValidator serverCertificateValidator = null)
            : base(baseUri)
        {
            authentication.AddClientAuthentication(this);

            _authentication                = authentication;
            _serverCertificateValidator    = serverCertificateValidator;
            _certificateCallbackSubscribed = false;
        }
コード例 #3
0
 public StargateClient(string serviceUrl, IRestAuthentication authentication)
     : base(serviceUrl, authentication) { }
コード例 #4
0
 public StargateClient(string serviceUrl, IRestAuthentication authentication)
     : base(serviceUrl, authentication)
 {
 }