Oss.cs 895 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Threading;
  3. using System.Linq;
  4. using System.IO;
  5. using Aliyun.OSS;
  6. using Aliyun.OSS.Common;
  7. using Library;
  8. using System.Text.RegularExpressions;
  9. namespace AppConfig
  10. {
  11. public class Oss
  12. {
  13. public static string key = ConfigurationManager.AppSettings["OSSKey"].ToString(); //阿里云AccessKey ID
  14. public static string secret = ConfigurationManager.AppSettings["OSSSecret"].ToString(); //阿里云Access Key Secret
  15. public static string PathName = ConfigurationManager.AppSettings["Database"].ToString();
  16. public static string endpoint = ConfigurationManager.AppSettings["OSSEndpoint"].ToString(); //endpoint
  17. public static string bucketName = ConfigurationManager.AppSettings["OSSBucketName"].ToString();
  18. public static string SourceHost = "";
  19. public static bool OssStatus = true;
  20. }
  21. }