-
Notifications
You must be signed in to change notification settings - Fork 838
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
Move files, change namespaces #1035
Conversation
Where does the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall besides a few questions.
@@ -7,7 +7,7 @@ | |||
using Microsoft.AspNetCore.Http; | |||
using Microsoft.AspNetCore.Http.Features; | |||
|
|||
namespace Yarp.ReverseProxy.Middleware | |||
namespace Yarp.ReverseProxy.Model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReverseProxyApplicationBuilder
is used only for configuration. Would it make sense to move it into some special namespace? In my opinion, Yarp.ReverseProxy.Model
is for the types we use in runtime, not configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It used to be in the middleware namespace but we got rid of that. All of the other components that are used by the middleware are here in model so I put it there.
We can cover this in today's API review. |
API review:
Tracked separately (#462 (comment))
|
Updated with API review feedback. Please prioritize this review so we can minimize merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very glad we're getting rid of the nesting and splitting of domains across folders.
Nit: Given that IClusterChangeListener
is the only public thing in the Management
namespace, could it fit under Configuration/Model instead? What kind of other functionality would we put into Management
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Moved to Model since this deals with ClusterState objects. |
Contributes to #462
Overall there are now fewer and shorter namespaces.
TODO:
In hindsight I should have done only the file moves first, updating namespaces is painful.
I also shouldn't have started this before taking a long weekend 😁. Feel free to continue and push directly to this branch.
As for reviewing, let's focus on the directory structure first, since that drives the namespaces. Is anything horribly out of place? Do the categories still make sense?