Exemplo n.º 1
0
        static void Main(string[] args)
        {
            MyServer server = new MyServer();
            MyClient client = new MyClient(server);

            server.MaliciousAlarm += client.RaiseInvalidCommand;
            client.ExecuteCommand("Nothing happends");
            client.ExecuteCommand("-truncate Something happend");
            Console.ReadKey();
        }
Exemplo n.º 2
0
 public MyClient(MyServer server)
 {
     this.server = server;
 }