You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
756 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ksat.Supplyment.Library.Model.Uploader;
namespace Ksat.Supplyment.Library.Uploader
{
public delegate void UploadFinishHandler(object sender, bool success, string reason);
public interface IUploaderRequest<T>
{
/// <summary>
/// 请求数据
/// </summary>
T RequestData { get; set; }
/// <summary>
/// 开始上传任务
/// </summary>
void Start();
/// <summary>
/// 停止上传任务
/// </summary>
void Cancel();
/// <summary>
/// 上传完成事件
/// </summary>
event UploadFinishHandler UploadFinish;
}
}