示例#1
0
        public string GetUrl(XpoCoordinatesUrlRequest request)
        {
            var baseUri = GetXpoCoordsUrl();

            var stringBuilder = new StringBuilder(baseUri);
            stringBuilder.AppendRequest(request);

            return stringBuilder.ToString();
        }
示例#2
0
        public string GetUrl(XpoCoordinatesUrlRequest request)
        {
            var baseUri = GetXpoCoordsUrl();

            var stringBuilder = new StringBuilder(baseUri);

            stringBuilder.AppendRequest(request);

            return(stringBuilder.ToString());
        }
示例#3
0
        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);
        }
示例#4
0
        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;
        }
示例#5
0
        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()));
        }
示例#6
0
 public XpoUrlParts GetUrlParts(XpoCoordinatesUrlRequest request)
 {
     throw new NotImplementedException("Cannot get URL parts for the XPO V1 implementation");
 }
示例#7
0
 public XpoUrlParts GetUrlParts(XpoCoordinatesUrlRequest request)
 {
     throw new NotImplementedException("Cannot get URL parts for the XPO V1 implementation");
 }