示例#1
0
 /// <summary>
 /// Remote upload file
 /// </summary>
 /// <param name="remoteOption">Remote options</param>
 /// <param name="fileOption">File option</param>
 /// <param name="fileBytes">File bytes</param>
 /// <param name="parameters">Parameters</param>
 /// <returns>Return upload result</returns>
 public static async Task <UploadResult> RemoteUploadAsync(RemoteServerOptions remoteOption, UploadFile fileOption, byte[] fileBytes, object parameters = null)
 {
     return(await RemoteUploadAsync(remoteOption, fileOption, fileBytes, parameters).ConfigureAwait(false));
 }
示例#2
0
        /// <summary>
        /// Remote upload file
        /// </summary>
        /// <param name="remoteOption">Remote option</param>
        /// <param name="fileOptions">File options</param>
        /// <param name="files">Upload files</param>
        /// <param name="parameters">Parameters</param>
        /// <returns>Return upload result</returns>
        public static async Task <UploadResult> RemoteUploadAsync(RemoteServerOptions remoteOption, List <UploadFile> fileOptions, Dictionary <string, byte[]> files, Dictionary <string, string> parameters = null)
        {
            var result = await UploadManager.RemoteUploadAsync(remoteOption, fileOptions, files, parameters).ConfigureAwait(false);

            return(HandleUploadResult(result));
        }