示例#1
0
        /// <summary>
        /// 获取文件夹
        /// </summary>
        /// <param name="folderUri">文件夹uri</param>
        /// <returns></returns>
        public DCTClientFolder GetFolder(string folderUri)
        {
            DCTClientFolder result = null;

            ServiceProxy.SingleCall <IDCSStorageService>(binding, storageEndpointAddress, userBehavior, action =>
            {
                result = action.DCMGetFolderByUri(folderUri).To <DCTClientFolder>();
            });
            return(result);
        }
示例#2
0
        /// <summary>
        /// 创建文件夹
        /// </summary>
        /// <param name="foldername">文件夹名称</param>
        /// <returns></returns>
        public DCTClientFolder CreateFolder(string foldername)
        {
            DCTClientFolder result = null;

            ServiceProxy.SingleCall <IDCSStorageService>(client.Binding, client.StorageEndpointAddress, client.UserBehavior, action =>
            {
                result = action.DCMCreateFolder(foldername, this.To <DCTFolder>()).To <DCTClientFolder>();
            });
            return(result);
        }
示例#3
0
        /// <summary>
        /// 获取子文件夹
        /// </summary>
        /// <param name="foldername">文件夹名称</param>
        /// <returns></returns>
        public DCTClientFolder GetFolder(string foldername)
        {
            DCTClientFolder result = null;

            ServiceProxy.SingleCall <IDCSStorageService>(client.Binding, client.StorageEndpointAddress, client.UserBehavior, action =>
            {
                var temp = action.DCMGetFolderByUri(UriHelper.CombinePath(this.Uri, foldername));
                result   = temp == null ? null : temp.To <DCTClientFolder>();
            });
            return(result);
        }