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(); }
public override void Write(string message) { Debug.Write(message); client.DisplayLogEntry(message); }