InternalGetLegacyUserSettingsSimple method
Future<GetUserSettingsResponse>
InternalGetLegacyUserSettingsSimple(
- String emailAddress,
- List<
UserSettingName> requestedSettings
Implementation
Future<GetUserSettingsResponse> InternalGetLegacyUserSettingsSimple(
String emailAddress, List<UserSettingName> requestedSettings) async {
// Cannot call legacy Autodiscover service with WindowsLive and other WSSecurity-based credentials
// TODO implement WSSecurityBasedCredentials
// if ((this.Credentials != null) && (this.Credentials is WSSecurityBasedCredentials))
// {
// throw new AutodiscoverLocalException("Strings.WLIDCredentialsCannotBeUsedWithLegacyAutodiscover");
// }
OutlookConfigurationSettings settings = await this
.GetLegacyUserSettings<OutlookConfigurationSettings>(
OutlookConfigurationSettings(), emailAddress);
return settings.ConvertSettings(emailAddress, requestedSettings);
}