private void RPCClient_SocketError(object sender, Core.Communication.EventArguments.SocketErrorEventArgs e) { Log(string.Format("Socket error: {0}", e.SocketError)); Action stopWork = OnStopWork; Dispatcher.Invoke(stopWork, null); }
private void SocketError(object sender, Core.Communication.EventArguments.SocketErrorEventArgs e) { Log.ErrorToUI("Socket Error occured!"); Log.Error(string.Format("Connection Error: {0}.", e.SocketError)); DisposePlugins(true); Log.Info("Going to shutdown application."); Environment.Exit(-1); }
private void Client_SocketError(object sender, Core.Communication.EventArguments.SocketErrorEventArgs e) { Log("Connection Error: " + e.SocketError); ConnectButton.BeginInvoke(new MethodInvoker(() => { ConnectButton.Enabled = true; })); DisconnectButton.BeginInvoke(new MethodInvoker(() => { DisconnectButton.Enabled = false; })); }