IEventMiddleware interface

Function signature for a piece of middleware that hooks the 'receive' or 'send' events.