public void UploadFile(string fileName, string originFileName) { TkDebug.AssertArgumentNullOrEmpty(originFileName, "originFileName", this); ObjectMetadata metaData = AliyunOSSUtil.UseOriginName(originFileName); UploadFile(AliyunOSSSetting.CreateClient(), fileName, metaData); }
public void AppStarted(object application, BaseAppSetting appsetting, BaseGlobalVariable globalVariable) { string fileName = Path.Combine(appsetting.XmlPath, "AliyunOSS.xml"); if (File.Exists(fileName)) { AliyunOSSConfigXml xml = new AliyunOSSConfigXml(); xml.ReadXmlFromFile(fileName); AliyunOSSSetting.CreateAliyunOSSSetting(xml); } }
internal static AliyunOSSSetting CreateAliyunOSSSetting(AliyunOSSConfigXml xml) { fCurrent = new AliyunOSSSetting(xml); return(fCurrent); }
public static bool CreateBucket(string bucketName) { return(CreateBucket(AliyunOSSSetting.CreateClient(), bucketName)); }
public void RemoveTo(FileConfig target, ObjectMetadata metaData = null) { RemoveTo(AliyunOSSSetting.CreateClient(), target, metaData); }
public bool Exists() { return(Exists(AliyunOSSSetting.CreateClient())); }
public Uri GenerateUri() { return(GenerateUri(AliyunOSSSetting.CreateClient())); }
public void Delete() { Delete(AliyunOSSSetting.CreateClient()); }
public void Download(Stream downloadStream) { Download(AliyunOSSSetting.CreateClient(), downloadStream); }
public void UploadFile(Stream stream, ObjectMetadata metaData) { UploadFile(AliyunOSSSetting.CreateClient(), stream, metaData); }
public void UploadFile(Stream stream) { UploadFile(AliyunOSSSetting.CreateClient(), stream); }
public void UploadFile(string fileName, ObjectMetadata metaData) { UploadFile(AliyunOSSSetting.CreateClient(), fileName, metaData); }
public void UploadFile(string fileName) { UploadFile(AliyunOSSSetting.CreateClient(), fileName); }