public async void LoadData() { sampleTable = new SampleServiceReference.SampleTableServiceClient(); sampleList = new ObservableCollection <SampleServiceReference.SampleTable>(); foreach (var item in await sampleTable.GetSampleDataAsync()) { sampleList.Add(item); } }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(SampleTableServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ISampleTableService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(SampleTableServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ISampleTableService)); }
public SampleTableServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(SampleTableServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public SampleTableServiceClient(EndpointConfiguration endpointConfiguration) : base(SampleTableServiceClient.GetBindingForEndpoint(endpointConfiguration), SampleTableServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public SampleTableServiceClient() : base(SampleTableServiceClient.GetDefaultBinding(), SampleTableServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ISampleTableService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }