示例#1
0
 public NodeHttpClient(Authenticator authenticator, NodeOptions nodeOptions) : base(new NodeHttpHandler(nodeOptions))
 {
     _authenticator = authenticator;
     DefaultRequestHeaders.Authorization = authenticator.AuthorizationHeader;
 }
示例#2
0
 public NodeHttpHandler(NodeOptions nodeOptions)
 {
     ServerCertificateCustomValidationCallback = (message, cert, chain, errors) =>
                                                 nodeOptions.CoreConnectionIgnoreSslWarnings ||
                                                 new HttpClientHandler().ServerCertificateCustomValidationCallback(message, cert, chain, errors);
 }
示例#3
0
 public Authenticator(NodeOptions options)
 {
     _options = options;
 }