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.

28 lines
733 B

using System;
using Newtonsoft.Json;
using Ksat.Supplyment.Library.Uploader;
namespace S3Demo.Model.Uploader
{
3 years ago
public class S3Uploader : Ksat.CommonModelLibrary.Utils.SingletonUtils<S3Uploader>,IDisposable
{
3 years ago
private static Uploader<S3UploadModel> mUploader;
private static S3UploadOperator mOperator;
3 years ago
private S3Uploader()
{
mOperator = new S3UploadOperator();
3 years ago
mUploader = new Uploader<S3UploadModel>("xxx", mOperator);
}
3 years ago
public void AddUploadTask(S3UploadModel reqData, string tag)
{
mUploader.AddUploadRequest(reqData, tag);
}
public void Dispose()
{
mUploader.Dispose();
}
}
}