phatboyg/Topshelf — pull request #23 by darinkes (2013-03-28 16:56:01+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);
});