static AliyunHelper() { var value = new System.Configuration.AppSettingsReader().GetValue("aliyunAccessKey", typeof(String)) as string; if (value != null) { var arr = value.Split(new []{",", ";"}, StringSplitOptions.RemoveEmptyEntries); if (arr.Length > 1) { string id = arr[0], secret = arr[1]; if (!String.IsNullOrWhiteSpace(id) && !String.IsNullOrWhiteSpace(secret)) { AliyunAccessKey = new AliyunAccessKey(id.Trim(), secret.Trim()); } } } }
static AliyunHelper() { var value = new System.Configuration.AppSettingsReader().GetValue("aliyunAccessKey", typeof(String)) as string; if (value != null) { var arr = value.Split(new [] { ",", ";" }, StringSplitOptions.RemoveEmptyEntries); if (arr.Length > 1) { string id = arr[0], secret = arr[1]; if (!String.IsNullOrWhiteSpace(id) && !String.IsNullOrWhiteSpace(secret)) { AliyunAccessKey = new AliyunAccessKey(id.Trim(), secret.Trim()); } } } }