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 Pipeline types under Native AOT #159

Open
Kay-STL opened this issue Jan 17, 2025 · 1 comment
Open

Using Pipeline types under Native AOT #159

Kay-STL opened this issue Jan 17, 2025 · 1 comment

Comments

@Kay-STL
Copy link

Kay-STL commented Jan 17, 2025

Probably a bit of a basic question, but - how should the Pipeline types examples be adapted to function under Native AOT?

Whenever a behavior is invoked, I'm getting an InvalidOperationException stating Native code to support creating generic services might not be available with native AOT.

Any advice would be great!

@scott-ferguson-ravensdown
Copy link

scott-ferguson-ravensdown commented Mar 25, 2025

I also would be interested in this @martinothamar
We're using Minimal APIs under AWS Lambda, but we also get this error when attempting to Register open generics, for example:
builder.Services.AddScoped(typeof(IPipelineBehavior<,>), typeof(MessageValidatorBehavior<,>)); when trying to compile for Native AOT

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

No branches or pull requests

2 participants