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.
27 lines
702 B
27 lines
702 B
using System;
|
|
using Ksat.Supplyment.Library.Uploader;
|
|
|
|
namespace S3Demo.Model.Uploader
|
|
{
|
|
public class S3Uploader : S3Demo.Helper.SingletonHelper<S3Uploader>,IDisposable
|
|
{
|
|
private static Uploader<S3UploadModel> mUploader;
|
|
private static S3UploadOperator mOperator;
|
|
private S3Uploader()
|
|
{
|
|
mOperator = new S3UploadOperator();
|
|
mUploader = new Uploader<S3UploadModel>("S3Uploader", mOperator);
|
|
}
|
|
|
|
public void AddUploadTask(S3UploadModel reqData, string tag)
|
|
{
|
|
mUploader.AddUploadRequest(reqData, tag);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
mUploader.Dispose();
|
|
}
|
|
}
|
|
}
|