Skip to content
Discussion options

You must be logged in to vote

That message means the generated client exists, but that particular method did not get the new direct generated-request-building path.

AddRefitGeneratedClient<T>() is the strict/native-AOT path. It uses RestService.ForGenerated<T>() and deliberately does not register the old reflection IRequestBuilder<T> fallback. So if one interface method is generated as "call the reflection request builder for this method", resolving/calling it fails with that message.

The confusing part is the word "enable". There is no per-method runtime switch to call in DI. In the current README, generated request building is on by default, and the project property shown is the opposite switch:

<PropertyGroup>
  <R…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@glennawatson
Comment options

@wokket
Comment options

Answer selected by glennawatson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants