public async Task <Option <UserRegistrationProcess> > GetAsync(Guid userId) { var resolvedEvents = await _connection.ReadSreamEventsAsync(StreamBy(userId)); var eventsBytes = resolvedEvents.Select(e => e.OriginalEvent); var events = eventsBytes .Select(_eventSerializer.FromEventData) .Select(maybeEvent => maybeEvent.ValueOrFailure()) .ToList(); return(events.Any() ? new UserRegistrationProcess(events).Some() : Option.None <UserRegistrationProcess>()); }