Skip to content

Generate the client with Refit and System.Text.Json source generation for Native AOT - #390

Draft
zidad wants to merge 1 commit into
masterfrom
feat/refit-aot
Draft

zidad wants to merge 1 commit into
masterfrom
feat/refit-aot

Conversation

@zidad

@zidad zidad commented Nov 21, 2026

Copy link
Copy Markdown
Member
  • IManagementClient becomes a Refit 17 interface with the same method names; ManagementClient forwards to the generated client, JSON through a source-generated context
  • Targets net48, net10.0, net11.0; IsAotCompatible; no longer strong-named (Refit isn't)
  • Removes sync overloads, classic mirroring API, raw RelativePath primitives, obsolete host-name constructor
  • Failures still throw UnexpectedHttpStatusCodeException; health checks still read 200/503
  • Integration fixture binds free host ports; CI installs SDK 10 and 11

… for Native AOT

- IManagementClient: Refit interface, same method names; ManagementClient forwards to the generated client
- Targets net48, net10.0, net11.0; IsAotCompatible; assembly no longer strong-named
- Remove sync overloads, classic mirroring API, raw RelativePath primitives, legacy host constructor
- Failures still throw UnexpectedHttpStatusCodeException; health checks read 200/503
- Integration fixture binds free host ports
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 this pull request may close these issues.

1 participant