/// <summary> /// 上传文件数据 /// </summary> /// <param name="instance">实例</param> /// <param name="data">数据</param> /// <param name="offset">偏移量</param> /// <param name="dataLength">数据长度</param> /// <returns></returns> public bool UploadFileData(UploadInstance instance, byte[] data, long offset, int dataLength) { return(_service.UploadFileData(ManagerCommon.SerializeEntity(instance), data, offset, dataLength)); }
/// <summary> /// 中止上传 /// </summary> /// <param name="instance">实例</param> public void AbortUpload(UploadInstance instance) { _service.AbortUpload(ManagerCommon.SerializeEntity(instance)); }
/// <summary> /// 创建上传实例 /// </summary> /// <param name="path">路径</param> /// <param name="fileName">文件名</param> /// <returns></returns> public UploadInstance CreateUploadInstance(string path, string fileName) { return((UploadInstance)ManagerCommon.DeserializeEntity(_service.CreateUploadInstance(path, fileName))); }