static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CatalogView catalogView = new CatalogView(); ICatalogService service = new eShopServiceReference.CatalogServiceClient(); CatalogController catalogController = new CatalogController(service, catalogView); catalogController.LoadView(); catalogView.ShowDialog(); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(CatalogServiceClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_ICatalogService)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(CatalogServiceClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_ICatalogService)); }
public CatalogServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(CatalogServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public CatalogServiceClient(EndpointConfiguration endpointConfiguration) : base(CatalogServiceClient.GetBindingForEndpoint(endpointConfiguration), CatalogServiceClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public CatalogServiceClient() : base(CatalogServiceClient.GetDefaultBinding(), CatalogServiceClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_ICatalogService.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }