Click here to Skip to main content
15,562,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi
guys i am not able to fetch list of Relying Partys defined in ACS namespace , Windows Azure App fabric.
Can anybody help on this, what i found iam able to fetch only 50 RelyingPartys by using below method :
C#
<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>
Posted
Updated 8-Oct-14 3:15am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900