public static void Open(string host) { CustomBinding binding = new CustomBinding( new BinaryMessageEncodingBindingElement(), new TcpTransportBindingElement()); SearchService = new SearchServiceClient(binding, new EndpointAddress(host + "Search")); PlaylistService = new PlaylistServiceClient(binding, new EndpointAddress(host + "Playlist")); PlayerService = new PlayerServiceClient(binding, new EndpointAddress(host + "Player")); pOpenedServices = 0; SearchService.OpenCompleted += OnServiceOpenCompleted; PlaylistService.OpenCompleted += OnServiceOpenCompleted; PlayerService.OpenCompleted += OnServiceOpenCompleted; SearchService.OpenAsync(); PlaylistService.OpenAsync(); PlayerService.OpenAsync(); }
public static void Open(string host) { CustomBinding binding = new CustomBinding( new BinaryMessageEncodingBindingElement(), new TcpTransportBindingElement()); SearchService = new SearchServiceClient(binding, new EndpointAddress(host + "Search")); PlaylistService = new PlaylistServiceClient(binding, new EndpointAddress(host + "Playlist")); PlayerService = new PlayerServiceClient(binding, new EndpointAddress(host + "Player")); pOpenedServices = 0; SearchService.OpenCompleted += OnServiceOpenCompleted; PlaylistService.OpenCompleted += OnServiceOpenCompleted; PlayerService.OpenCompleted += OnServiceOpenCompleted; SearchService.OpenAsync(); PlaylistService.OpenAsync(); PlayerService.OpenAsync(); }