Add logging of an event as an example to generated C# project code.