static AWSConfigsMobileAnalytics() { #if BCL||AWSSDK_UNITY var root = new RootConfig(); var section = root.GetServiceSection(mobileAnalyticsKey); if (section == null) { return; } var rootSection = new MobileAnalyticsConfigSectionRoot(section); if (rootSection.MobileAnalytics != null) AWSConfigsMobileAnalytics.Configure(rootSection.MobileAnalytics); #endif }
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 }
static AWSConfigsS3() { #if BCL || CORECLR _useSignatureVersion4 = true; #else _useSignatureVersion4 = false; #endif UseSigV4SetExplicitly = false; #if BCL || UNITY 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 }
/// <summary> /// Constructor of <see cref="Amazon.MobileAnalytics.MobileAnalyticsManager.MobileAnalyticsManagerConfig"/> /// </summary> public MobileAnalyticsManagerConfig() { SessionTimeout = defaultSessionTimeout; MaxDBSize = defaultMaxDBSize; DBWarningThreshold = defaultDBWarningThreshold; MaxRequestSize = defaultMaxRequestSize; AllowUseDataNetwork = defaultAllowUseDataNetwork; #if BCL ClientContextConfiguration = new ClientContextConfig(); #endif #if UNITY var root = new RootConfig(); var section = root.GetServiceSection(mobileAnalyticsKey); if (section == null) { return; } var rootSection = new MobileAnalyticsManagerConfigSectionRoot(section); if (rootSection.SectionConfig != null) Configure(rootSection.SectionConfig); #endif }