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(); }
/// <summary> /// default constructor /// </summary> public LiveViewListener() { client = new LiveViewClient(); }