So i’m still not having much luck. I added the ExecutionExtension class to my program, removed the ‘IExtension’ reference as I don’t think I need it, made both Log methods ‘public’ so they can be written to from another class and the call them:
ExecutionExtension test = new ExecutionExtension();
test.MessageLogged += test.Log;
But this results in an Stackoverflow exception:
System.StackOverflowException: ‘Exception of type ‘System.StackOverflowException’ was thrown.’
I’m probably calling this in a wrong way. Any ideas on how to do it properly?
edit: I see for example here that first the message should be created and then the Log method should be called, but when I do that, the MessageLogged is null…