private static GetConfig ( string name ) : string | ||
name | string | |
Результат | string |
static AWSConfigsS3() { _useSignatureVersion4 = true; UseSigV4SetExplicitly = false; #if BCL var appSettingValue = AWSConfigs.GetConfig(S3UseSignatureVersion4Key); if (!string.IsNullOrEmpty(appSettingValue)) { UseSignatureVersion4 = bool.Parse(appSettingValue); } var root = new RootConfig(); var section = root.GetServiceSection(s3Key); if (section == null) { return; } var rootSection = new V4ClientSectionRoot(section); if (rootSection.S3 != null) { var s3Section = rootSection.S3; if (s3Section.ElementInformation.IsPresent) { if (s3Section.UseSignatureVersion4.HasValue) { UseSignatureVersion4 = s3Section.UseSignatureVersion4.Value; } } } #endif }
static AWSConfigsS3() { //IL_002a: Unknown result type (might be due to invalid IL or missing references) _useSignatureVersion4 = false; UseSigV4SetExplicitly = false; string config = AWSConfigs.GetConfig("AWS.S3.UseSignatureVersion4"); if (!string.IsNullOrEmpty(config)) { UseSignatureVersion4 = bool.Parse(config); } XElement serviceSection = new RootConfig().GetServiceSection("s3"); if (serviceSection != null) { V4ClientSectionRoot v4ClientSectionRoot = new V4ClientSectionRoot(serviceSection); if (v4ClientSectionRoot.S3 != null) { V4ClientSection s = v4ClientSectionRoot.S3; if (s.get_ElementInformation().get_IsPresent() && s.UseSignatureVersion4.HasValue) { UseSignatureVersion4 = s.UseSignatureVersion4.Value; } } } }
static AWSConfigsS3() { #if BCL var appSettingValue = AWSConfigs.GetConfig(S3UseSignatureVersion4Key); if (!string.IsNullOrEmpty(appSettingValue)) { UseSignatureVersion4 = bool.Parse(appSettingValue); } var root = new RootConfig(); var section = root.GetServiceSection(s3Key); if (section == null) { return; } var rootSection = new V4ClientSectionRoot(section); if (rootSection.S3 != null) { AWSConfigsS3.Configure(rootSection.S3); } #endif }