Esempio n. 1
0
        internal static DomainServices ConnectToDomainServices()
        {
            string         url;
            DomainServices domainServicesProxy = DomainServicesHelper.GetDomainServicesProxy(out url);

            try
            {
                using (DomainServicesPerformanceData.DomainServicesConnection.StartRequestTimer())
                {
                    domainServicesProxy.TestConnection("foo");
                }
            }
            catch (SoapException se)
            {
                throw DomainServicesHelper.GetWLCDPartnerAccessExceptionToThrow(url, se);
            }
            catch (WebException ex)
            {
                throw new WLCDPartnerAccessException(Strings.ErrorWLCDPartnerAccessException(url, ex.ToString()), ex);
            }
            return(domainServicesProxy);
        }