using Ksat.Supplyment.Library.Model.Uploader; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ksat.Supplyment.Library.Uploader { public interface IUploaderOperator { /// /// 上传数据 /// IUploaderRequest UploadData(T data); T ConvertCacheToRequest(string cache); string ConvertRequestToCachel(T requestData); /// /// 任务开始前,判断任务是否要开始 /// /// /// /// bool ShouldStartRequest(UploadModel requestModel, out string cancelReason); /// /// 任务失败以后,判断是否需要重试 /// /// /// /// bool ShouldRetryRequest(UploadModel requestModel, out string cancelReason); } }