/// <summary> /// Post-process responses to GetDomainSettings. /// </summary> /// <param name="responses">The GetDomainSettings responses.</param> private void PostProcessResponses(GetDomainSettingsResponseCollection responses) { // Note:The response collection may not include all of the requested domains if the request has been throttled. for (int index = 0; index < responses.Count; index++) { responses[index].Domain = this.Domains[index]; } }
/// <summary> /// Executes this instance. /// </summary> /// <returns></returns> internal GetDomainSettingsResponseCollection Execute() { GetDomainSettingsResponseCollection responses = (GetDomainSettingsResponseCollection)this.InternalExecute(); if (responses.ErrorCode == AutodiscoverErrorCode.NoError) { this.PostProcessResponses(responses); } return(responses); }