Exemplo n.º 1
0
        public async void LoadData()
        {
            sampleTable = new SampleServiceReference.SampleTableServiceClient();
            sampleList  = new ObservableCollection <SampleServiceReference.SampleTable>();

            foreach (var item in await sampleTable.GetSampleDataAsync())
            {
                sampleList.Add(item);
            }
        }
Exemplo n.º 2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(SampleTableServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ISampleTableService));
 }
Exemplo n.º 3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(SampleTableServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ISampleTableService));
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 public SampleTableServiceClient(EndpointConfiguration endpointConfiguration) :
     base(SampleTableServiceClient.GetBindingForEndpoint(endpointConfiguration), SampleTableServiceClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Exemplo n.º 6
0
 public SampleTableServiceClient() :
     base(SampleTableServiceClient.GetDefaultBinding(), SampleTableServiceClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ISampleTableService.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }