protected virtual string GetCredentialsForBuild() { return(ShouldUseBasicCredentials ? string.Format("{0}:{1}@", UrlParam.Encode(Username), UrlParam.Encode(Password)) : string.Empty); }
protected virtual string GenerateQueryStringParams(SearchIndexRequest request) { return(string.Join("&", GenerateJsonCompatibleKeyValues(request) .Select(kv => string.Format("{0}={1}", kv.Key, UrlParam.Encode(kv.Value))))); }
protected virtual string GenerateQueryStringParams(GetChangesRequest request) { return(string.Join("&", ConvertRequestToJsonCompatibleKeyValues(request) .Select(kv => string.Format("{0}={1}", kv.Key, UrlParam.Encode(kv.Value))))); }