public string GetUrl(XpoCoordinatesUrlRequest request) { var baseUri = GetXpoCoordsUrl(); var stringBuilder = new StringBuilder(baseUri); stringBuilder.AppendRequest(request); return stringBuilder.ToString(); }
public string GetUrl(XpoCoordinatesUrlRequest request) { var baseUri = GetXpoCoordsUrl(); var stringBuilder = new StringBuilder(baseUri); stringBuilder.AppendRequest(request); return(stringBuilder.ToString()); }
public static StringBuilder AppendRequest(this StringBuilder stringBuilder, XpoCoordinatesUrlRequest request) { stringBuilder .Append(EntityName, HttpUtility.UrlEncode(request.PrimaryKey)) .Append(OutputType, (int)request.OutputType) .Append(Width, request.Width) .Append(Height, request.Height) .Append(ResizeMethod, request.ResizeMethod) .AppendDictionary(request.CustomParameters); return(stringBuilder); }
public static StringBuilder AppendRequest(this StringBuilder stringBuilder, XpoCoordinatesUrlRequest request) { stringBuilder .Append(EntityName, HttpUtility.UrlEncode(request.PrimaryKey)) .Append(OutputType, (int)request.OutputType) .Append(Width, request.Width) .Append(Height, request.Height) .Append(ResizeMethod, request.ResizeMethod) .AppendDictionary(request.CustomParameters); return stringBuilder; }
public XpoUrlParts GetUrlParts(XpoCoordinatesUrlRequest request) { var baseUri = GetXpoBaseUrl(request); if (baseUri == "/") { baseUri = ""; } var stringBuilder = new StringBuilder(baseUri); stringBuilder.AppendRequest(request); return(new XpoUrlParts(request.PrimaryKey, stringBuilder.ToString())); }
public XpoUrlParts GetUrlParts(XpoCoordinatesUrlRequest request) { throw new NotImplementedException("Cannot get URL parts for the XPO V1 implementation"); }