private void StartIpcServer() { this.ipcServer = new ServiceHost(this, this.ipcUri); this.ipcServer.AddServiceEndpoint(typeof(IApplicationInstanceMonitor <T>), this.binding, this.ipcUri); this.ipcServer.Open(); this.ipcChannel = this; }
private void StartIpcServer() { try { _ipcServer = new ServiceHost(this, _ipcUri); _ipcServer.AddServiceEndpoint(typeof(IApplicationInstanceMonitor <T>), _binding, _ipcUri); _ipcServer.Open(); _ipcChannel = this; } catch (Exception) { } }
private void ConnectToIpcServer() { this.channelFactory = new ChannelFactory <IApplicationInstanceMonitor <T> >(this.binding, new EndpointAddress(this.ipcUri)); this.ipcChannel = this.channelFactory.CreateChannel(); }