public async void LoadData()
        {
            sampleTable = new SampleServiceReference.SampleTableServiceClient();
            sampleList  = new ObservableCollection <SampleServiceReference.SampleTable>();

            foreach (var item in await sampleTable.GetSampleDataAsync())
            {
                sampleList.Add(item);
            }
        }
Exemple #2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(SampleTableServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ISampleTableService));
 }
Exemple #3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(SampleTableServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ISampleTableService));
 }
Exemple #4
0
 public SampleTableServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(SampleTableServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemple #5
0
 public SampleTableServiceClient(EndpointConfiguration endpointConfiguration) :
     base(SampleTableServiceClient.GetBindingForEndpoint(endpointConfiguration), SampleTableServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemple #6
0
 public SampleTableServiceClient() :
     base(SampleTableServiceClient.GetDefaultBinding(), SampleTableServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ISampleTableService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }