Topshelf/Topshelf — pull request #132 by darinkes (2013-03-28 16:55:38+00:00)
Title: add WhenSessionEvent

Implement everything you need to register a Handler
for SessionEvents.

Works fine as Service and Console-Application.

Enable it:

service.EnableHandleSessionChangeEvent();

The Callback:

s.WhenSessionEvent((se, e, id) => {
se.HandleEvent(e, id);
});