void ModifyEndPoint(OlapWebService.OlapWebServiceSoapClient service) { if (service != null) { if (!String.IsNullOrEmpty(URL)) { service.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri(URL)); } else { service.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri(Application.Current.Host.Source, "/OlapWebService.asmx")); } } }
void ModifyEndPoint(OlapWebService.OlapWebServiceSoapClient service) { if (service != null) { // Таймаут service.InnerChannel.OperationTimeout = new TimeSpan(0, 10, 0); if (!String.IsNullOrEmpty(URL)) { service.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri(URL)); } else { service.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri(Application.Current.Host.Source, "/OlapWebService.asmx")); } } }