Summary
In this chapter you first saw how to use the EventLog class and other related types to work with the event log. Specifically, you learned how these types enable applications to enumerate the available event logs, create custom logs, write log entries, enumerate log entries, and even subscribe to the EntryWritten event in order to be notified asynchronously whenever a new log entry is added to a specified log. From there, you discovered the Process class and how it can be used to start, control, and stop new processes. You saw that it also allows us to wait for a process to exit and to check whether a process is still running or not. We can also handle the Exited event if we need to be asynchronously notified when a process terminates. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access