コード例 #1
0
        internal override string GetResourceUri()
        {
            string zuneTagOrGuid = null;
            Guid?  property1     = (Guid?)this.Query.GetProperty("UserGuid");

            if (property1.HasValue && property1.Value != Guid.Empty)
            {
                zuneTagOrGuid = property1.Value.ToString().ToUpper();
            }
            if (string.IsNullOrEmpty(zuneTagOrGuid))
            {
                zuneTagOrGuid = this.Query.GetProperty("ZuneTag") as string;
            }
            StringBuilder args      = new StringBuilder(ComposerHelper.CreateOperationUri(this.Query.GetProperty("Operation") as string, zuneTagOrGuid));
            bool          first     = true;
            int?          property2 = (int?)this.Query.GetProperty("StartIndex");

            if (property2.HasValue)
            {
                UrlHelper.AppendParam(first, args, "startIndex", property2.ToString());
                first = false;
            }
            int?property3 = (int?)this.Query.GetProperty("ChunkSize");

            if (property3.HasValue)
            {
                UrlHelper.AppendParam(first, args, "chunkSize", property3.ToString());
            }
            return(args.ToString());
        }