public IEventEntry FormatEvent(IEventEntry eventEntry) { var payload = eventEntry.Payload; if (!string.IsNullOrWhiteSpace(payload)) { payload = payload.Compress(); eventEntry.SetPayloadString(payload); } return(eventEntry); }