// This function assumes 'IsValidEvent' was called upfront.
        private static bool IsValidLinkEvent(EmittedEventJsonContract @event)
        {
            var parts = @event.body.Split(LinkToSeparator, 2);

            return(long.TryParse(parts[0], out long _));
        }
 private static bool IsValidEvent(EmittedEventJsonContract @event)
 {
     return(!(@event.eventName.IsEmptyString() || @event.streamId.IsEmptyString() || @event.isJson && @event.body.IsEmptyString()));
 }