/// <summary> /// 中止上传 /// </summary> /// <param name="instance">实例</param> public void AbortUpload(UploadInstance instance) { _service.AbortUpload(ManagerCommon.SerializeEntity(instance)); }
/// <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)); }