public IActionResult Index() { luxeService.IemployeeClient client = new IemployeeClient(); DataSet ds = new DataSet(); //string e = client.get //e = client.Getall(); Task <string> tem = await client.GetallAsync(); return(View()); }
public IemployeeClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(IemployeeClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public IemployeeClient(EndpointConfiguration endpointConfiguration) : base(IemployeeClient.GetBindingForEndpoint(endpointConfiguration), IemployeeClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public IemployeeClient() : base(IemployeeClient.GetDefaultBinding(), IemployeeClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_Iemployee.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(IemployeeClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_Iemployee)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(IemployeeClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_Iemployee)); }