Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Client Starting ...");

            using (LiveViewClient client = new LiveViewClient())
            {
                client.DisplayLogEntry("Hello from the client");
            }

            if (!EventLog.SourceExists(source))
            {
                EventLog.CreateEventSource(source, log);
            }

            EventLog.WriteEntry(source, "Hello from the client");

            Console.WriteLine("Client Sent Message");
            Console.ReadLine();
        }
Ejemplo n.º 2
0
 public override void Write(string message)
 {
     Debug.Write(message);
     client.DisplayLogEntry(message);
 }