GetAutodiscoverServiceHosts method

List<String> GetAutodiscoverServiceHosts(
  1. String domainName,
  2. OutParam<int> scpHostCountOutParam
)
Gets the list of autodiscover service hosts. Name of the domain. Count of SCP hosts that were found.

Implementation

List<String> GetAutodiscoverServiceHosts(
  String domainName,
  OutParam<int> scpHostCountOutParam,
) {
  List<String> serviceHosts = <String>[];
  for (Uri? url in GetAutodiscoverServiceUrls(
    domainName,
    scpHostCountOutParam,
  )) {
    serviceHosts.add(url!.host);
  }

  return serviceHosts;
}