Implementation of InvokeCommandCommand, PublishEventCommand, CommandInvokedEvent, EventPublishedEvent