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