public bool ReconnectToSlaveCore() { try { pipeProxy = pipeFactory.CreateChannel(); pipeProxy.Subscribe(); return true; } catch (Exception) { OnMessageLogged("Couldn't connect to Slave Core. Waiting for the Core to start."); return false; } }
public bool ReconnectToSlaveCore() { try { pipeProxy = pipeFactory.CreateChannel(); pipeProxy.Subscribe(); return(true); } catch (Exception) { OnMessageLogged("Couldn't connect to Slave Core. Waiting for the Core to start."); return(false); } }
public bool ReconnectToSlaveCore() { try { DeregisterEvents(); pipeProxy = pipeFactory.CreateChannel(); StatusCommons st = pipeProxy.Subscribe(); if (st != null) { RegisterEvents(); OnStatusChanged(st); return(true); } else { return(false); } } catch (Exception) { OnMessageLogged("Couldn't connect to Slave core. Is it possible that the core isn't running?"); return(false); } }
private void SetupClientCom() { DummyListener dummy = new DummyListener(); try { pipeFactory = new DuplexChannelFactory <ISlaveCommunication>(dummy, Settings.Default.SlaveCommunicationServiceEndpoint); } catch { EventLogManager.LogMessage("Couldn't create pipe for SlaveClientCom with config!"); try { pipeFactory = new DuplexChannelFactory <ISlaveCommunication>(dummy, new NetNamedPipeBinding(), new EndpointAddress("net.pipe://localhost/HeuristicLabSlaveCom")); } catch { EventLogManager.LogMessage("Couldn't create pipe for SlaveClientCom with fixed addresse!"); return; } } pipeFactory.Faulted += new System.EventHandler(pipeFactory_Faulted); ISlaveCommunication pipeProxy = pipeFactory.CreateChannel(); ClientCom = pipeProxy; }
public bool ReconnectToSlaveCore() { try { DeregisterEvents(); pipeProxy = pipeFactory.CreateChannel(); StatusCommons st = pipeProxy.Subscribe(); if (st != null) { RegisterEvents(); OnStatusChanged(st); return true; } else { return false; } } catch (Exception) { OnMessageLogged("Couldn't connect to Slave core. Is it possible that the core isn't running?"); return false; } }