Pull the event writing code out of the EventContext so it can be reused for unsolicited mode
Pulled the event config out of the event context