/// <summary> /// Set the ProfileType field to maintain backward compatibility with ProfileManager. /// The value is ignored when it's read back in. /// </summary> /// <param name="properties"></param> /// <param name="profileType"></param> private static void SetProfileTypeField(Dictionary <string, string> properties, CredentialProfileType profileType) { if (profileType == CredentialProfileType.Basic) { properties[SettingsConstants.ProfileTypeField] = AWSCredentialsProfileType; } #if BCL else if (profileType == CredentialProfileType.SAMLRole || profileType == CredentialProfileType.SAMLRoleUserIdentity) { properties[SettingsConstants.ProfileTypeField] = SAMLRoleProfileType; } #endif else { properties[SettingsConstants.ProfileTypeField] = profileType.ToString(); } }
/// <summary> /// Set the ProfileType field to maintain backward compatibility with ProfileManager. /// The value is ignored when it's read back in. /// </summary> /// <param name="properties"></param> /// <param name="profileType"></param> private static void SetProfileTypeField(IDictionary <string, string> properties, CredentialProfileType profileType) { switch (profileType) { case CredentialProfileType.Basic: properties[SettingsConstants.ProfileTypeField] = AWSCredentialsProfileType; break; case CredentialProfileType.SAMLRole: case CredentialProfileType.SAMLRoleUserIdentity: properties[SettingsConstants.ProfileTypeField] = SAMLRoleProfileType; break; default: properties[SettingsConstants.ProfileTypeField] = profileType.ToString(); break; } }