예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 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; }));
 }