Esempio n. 1
0
        internal static WLCDPartnerAccessException GetWLCDPartnerAccessExceptionToThrow(string url, SoapException se)
        {
            if (se == null)
            {
                throw new ArgumentNullException("se");
            }
            WLCDPartnerAccessException ex = DomainServicesHelper.WrapIfKnownSoapException(se);

            if (ex == null)
            {
                LocalizedString message = Strings.ErrorWLCDPartnerAccessException(url, se.ToString());
                ex = new WLCDPartnerAccessException(message, se);
            }
            return(ex);
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        internal static DomainServices GetDomainServicesProxy()
        {
            string text;

            return(DomainServicesHelper.GetDomainServicesProxy(out text));
        }