sheepla / sheepla/AxisEndpoints

Migrate to source generator based implementation when configuing ASP.NET Core Minimal API

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The current implementation uses reflection in EndpointRegistry.cs to call the ASP.NET Core Minimal API.
While I believe this approach works well in most cases, using source generators is safer and offers better performance because the behavior is determined at compile time, and it is compatible with .NET’s native AOT builds.
Therefore, I'm considering migrating to a source generator-based approach.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading EndpointRegistry.cs and the current reflection-based endpoint registration for ASP.NET Core Minimal API. Determine the source-generator design needed to replace that behavior while preserving existing endpoint behavior and supporting .NET native AOT builds. Done means the implementation is migrated from reflection to source-generated code.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.