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); }
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); }
internal static DomainServices GetDomainServicesProxy() { string text; return(DomainServicesHelper.GetDomainServicesProxy(out text)); }