Пример #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; }));
 }