public override SearchDomainsUrlsResponse Execute(SearchDomainsUrlsRequest pServiceRequest) { SearchDomainsUrlsResponse wResponse = new SearchDomainsUrlsResponse(); UserBC wUserBC = new UserBC(pServiceRequest.ContextInformation.AppId, pServiceRequest.SecurityProviderName); List <DomainUrlInfo> wDomainUrlInfoList = ADWrapper.DomainsUrl_GetList(pServiceRequest.SecurityProviderName); wResponse.BusinessData.DomainsNameList = wUserBC.MapListDomainToListString(wDomainUrlInfoList); return(wResponse); }
void init() { try { urls = ADWrapper.DomainsUrl_GetList("ActiveDirectory");//@"Data Source=SANTANA\SQLEXPRESS;Initial Catalog=Logs;Integrated Security=True"); domainUrlInfoBindingSource.DataSource = urls; cmbDomains.SelectedIndex = 1; lblURL.Text = ((DomainUrlInfo)cmbDomains.SelectedItem).LDAPPath; } catch (Exception ex) { lblCheckResult.Text = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex); btnAutenticate.Enabled = false; } }