private RequestData CreatePingRequestData(Node node, Auditable audit) { audit.Node = node; var requestOverrides = new RequestConfiguration { PingTimeout = this.PingTimeout, RequestTimeout = this.PingTimeout, BasicAuthenticationCredentials = this._settings.BasicAuthenticationCredentials, EnableHttpPipelining = this.RequestConfiguration?.EnableHttpPipelining ?? this._settings.HttpPipeliningEnabled, ForceNode = this.RequestConfiguration?.ForceNode }; IRequestParameters requestParameters = new RootNodeInfoRequestParameters { }; requestParameters.RequestConfiguration = requestOverrides; var data = new RequestData(HttpMethod.HEAD, "/", null, this._settings, requestParameters, this._memoryStreamFactory) { Node = node }; audit.Path = data.PathAndQuery; return(data); }
private RequestData CreatePingRequestData(Node node, Auditable audit) { audit.Node = node; var requestOverrides = new RequestConfiguration { PingTimeout = this.PingTimeout, RequestTimeout = this.RequestTimeout, BasicAuthenticationCredentials = this._settings.BasicAuthenticationCredentials, EnableHttpPipelining = this.RequestConfiguration?.EnableHttpPipelining ?? this._settings.HttpPipeliningEnabled, ForceNode = this.RequestConfiguration?.ForceNode, CancellationToken = this.RequestConfiguration?.CancellationToken ?? default(CancellationToken) }; return(new RequestData(HttpMethod.HEAD, "/", null, this._settings, requestOverrides, this._memoryStreamFactory) { Node = node }); }
private RequestData CreatePingRequestData(Node node) { var requestOverrides = new RequestConfiguration { PingTimeout = PingTimeout, RequestTimeout = PingTimeout, BasicAuthenticationCredentials = _settings.BasicAuthenticationCredentials, EnableHttpPipelining = RequestConfiguration?.EnableHttpPipelining ?? _settings.HttpPipeliningEnabled, ForceNode = RequestConfiguration?.ForceNode }; IRequestParameters requestParameters = new RootNodeInfoRequestParameters(); requestParameters.RequestConfiguration = requestOverrides; var data = new RequestData(HttpMethod.HEAD, "/", null, _settings, requestParameters, _memoryStreamFactory) { Node = node }; return(data); }