/// <summary> /// Invoked when this page is about to be displayed in a Frame. /// </summary> /// <param name="e">Event data that describes how this page was reached. The Parameter /// property is typically used to configure the page.</param> protected async override void OnNavigatedTo(NavigationEventArgs e) { ProgressRing1.IsActive = true; ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient(); //ServiceReferenceForTest.Service1Client client = new ServiceReferenceForTest.Service1Client(); ListBoxMeta.ItemsSource = await client.GetDataAsync(TextBoxUrl.Text); ProgressRing1.IsActive = false; }
private async void ButtonGetData(object sender, RoutedEventArgs e) { ProgressRing1.IsActive = true; //ServiceReferenceForTest.Service1Client client = new ServiceReferenceForTest.Service1Client(); ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient(); //ListBoxMeta.Items.Add(await client.GetDataAsync()); ListBoxMeta.ItemsSource = await client.GetDataAsync(TextBoxUrl.Text); //TextBlockOutput.Text = await client.GetDataAsync(); ProgressRing1.IsActive = false; }
public BrowserStart() { this.InitializeComponent(); // Initialize the reference object with a service try{ client = new ServiceReferenceSurferliteAzureServer.ServiceSurferliteClient(); } catch { WebViewBrowse.NavigateToString("Can't connect to the SurferLite server"); } // Source Code view is not visible on start of page. TextBlockSource.Visibility = Visibility.Collapsed; }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(ServiceSurferliteClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IServiceSurferlite)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(ServiceSurferliteClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IServiceSurferlite)); }
public ServiceSurferliteClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(ServiceSurferliteClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ServiceSurferliteClient(EndpointConfiguration endpointConfiguration) : base(ServiceSurferliteClient.GetBindingForEndpoint(endpointConfiguration), ServiceSurferliteClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public ServiceSurferliteClient() : base(ServiceSurferliteClient.GetDefaultBinding(), ServiceSurferliteClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IServiceSurferlite.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }