Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Explicit Code for Marten live aggregate projections #2941

Closed
erdtsieck opened this issue Feb 1, 2024 · 0 comments · Fixed by #3414
Closed

Using Explicit Code for Marten live aggregate projections #2941

erdtsieck opened this issue Feb 1, 2024 · 0 comments · Fixed by #3414

Comments

@erdtsieck
Copy link
Contributor

At the moment if you write explicit code, such as https://jeremydmiller.com/2024/01/31/using-explicit-code-for-marten-projections/?replytocom=48346#respond for an aggregate and you change opts.Projections.LiveStreamAggregation<Gesprek>(); into opts.Projections.Add(new GesprekProjection(), ProjectionLifecycle.Live);

You get Unhandled exception. System.ArgumentOutOfRangeException: Live cannot be used for IProjection (Parameter 'lifecycle')

For the reasons in the article and to prevent code generation bugs, it would be nice to be able to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants