/// <summary>
        /// 转换为MultipartContent
        /// 为null则返回MultipartContent的实例
        /// </summary>
        /// <exception cref="NotSupportedException"></exception>
        /// <returns></returns>
        private MultipartContent CastToMultipartContent()
        {
            this.EnsureMediaTypeEqual(MultipartFormContent.MediaType);

            var httpContent = this.Content as MultipartContent;

            if (httpContent == null)
            {
                httpContent = new MultipartFormContent();
            }
            return(httpContent);
        }
        /// <summary>
        /// 创建省略文件内容的MultipartContent
        /// </summary>
        /// <returns></returns>
        private MultipartContent CreateEllipsisFileMultipartContent()
        {
            var multipartContent = new MultipartFormContent(this.boundary);

            foreach (var httpContent in this)
            {
                if (httpContent is MulitpartFileContent fileContent)
                {
                    multipartContent.Add(fileContent.ToEllipsisContent());
                }
                else
                {
                    multipartContent.Add(httpContent);
                }
            }
            return(multipartContent);
        }