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