private T GetNextEvent(string lastState) { var events = eventSource.Events(lastState); return(events.FirstOrDefault()); }