Beispiel #1
0
 private void onDataReceived(IConnection sender, DataReceivedEventArgs e)
 {
     Console.WriteLine(sender.GUID + " send: " + e.Data);
     IAction current_action = m_actions_handler.GetAction(e.Data);
     current_action.Sender = sender;
     current_action.InputData = e.Data;
     current_action.Execute();
 }
Beispiel #2
0
        private void onDataReceived(DataReceivedEventArgs e)
        {
            var handler = DataReceived;

            if (handler != null)
            { DataReceived(this, e); }
        }