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

Refactoring the Endpoint Routing API #738

Merged
merged 9 commits into from
Nov 21, 2023
Merged

Conversation

robertmclaws
Copy link
Collaborator

@robertmclaws robertmclaws commented Nov 18, 2023

  • Rename a bunch of classes (they might break people using reflection but should not be a big deal).
  • Refactor AddRestier() so that handles both Legacy and Endpoint routing.
  • Call AddControllers() in both cases because the services involved are minimal and people will expect similar behavior.
  • Make the return values consistent so we can reduce complexity on the test classes.
  • Still need to refactor the test suite to run the FULL GAMUT of tests on ASP.NET Core for both types of routing. That will be fun to figure out.

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

- Rename a bunch of classes (they might break people using reflection but should not be a big deal).
- Refactor `AddRestier()` so that handles both Legacy and Endpoint routing.
- Call `AddControllers()` in both cases because the services involved are minimal and people will expect similar behavior.
- Make the return values consistent so we can reduce complexity on the test classes.
- Still need to refactor the test suite to run the FULL GAMUT of tests on ASP.NET Core for both types of routing. That will be fun to figure out.
- Dual routing test pattern created
- LFG!!!
…for .NET 6+ and add a compatibility property that is irnored on our internal ASP.NET class

- Breakdance fixes for plumbing useEndpointRouting wherever necessary.
- Implementing the new pattern for unit tests, part 1
@robertmclaws robertmclaws changed the title Part 1: Refactoring the API Part 1: Refactoring the Endpoint Routing API Nov 20, 2023
@robertmclaws robertmclaws changed the title Part 1: Refactoring the Endpoint Routing API Refactoring the Endpoint Routing API Nov 20, 2023
@robertmclaws robertmclaws marked this pull request as ready for review November 20, 2023 18:44
@robertmclaws robertmclaws merged commit 80cfe22 into main Nov 21, 2023
1 check passed
@robertmclaws robertmclaws deleted the tasks/endpoint-refactor branch November 21, 2023 07:00
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