<blockquote class="quote"><div class="op">Quote:</div> ManagementServiceHelper serviceHelper = new ManagementServiceHelper(acsData.AcsServiceNameSpace, acsData.AcsUserName, acsData.AcsPassword); int count = serviceHelper.RetrieveRelyingParties().Count(); List<RelyingParty> relyingPartyList = serviceHelper.RetrieveRelyingParties().ToList(); List<IdentityProvider> identityProviderList = serviceHelper.RetrieveIdentityProviders().ToList(); foreach (var item in relyingPartyList) { if (item.Name.Equals(existingTenantData.TenantSlugName)) { string selected_Idp_DisplayName = string.Empty; string selected_IDP_ID = (from selectedIdp in identityProviderList select selectedIdp.Id).FirstOrDefault().ToString(); foreach (var identityProvider in identityProviderList) { foreach (var item2 in item.RelyingPartyIdentityProviders) { if (identityProvider.Id.Equals(item2.IdentityProviderId)) { selected_Idp_DisplayName = identityProvider.DisplayName; message = selected_Idp_DisplayName; } } } }</blockquote>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)