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