Example #1
0
 private DropthingsProxy.ProxyServiceClient GetProxyService()
 {
     DropthingsProxy.ProxyServiceClient service = new DropthingsProxy.ProxyServiceClient();
     service.Endpoint.Address = new EndpointAddress(DynamicEndpointHelper.ResolveEndpointUrl(service.Endpoint.Address.Uri.ToString(),
                                                                                             App.Current.Host.Source.ToString()));
     return(service);
 }
Example #2
0
        private WidgetServiceClient GetWidgetService()
        {
            var service = new WidgetServiceClient();

            service.Endpoint.Address = new EndpointAddress(DynamicEndpointHelper.ResolveEndpointUrl(service.Endpoint.Address.Uri.ToString(),
                                                                                                    App.Current.Host.Source.ToString()));
            return(service);
        }