refactor(service-config): Restructure service registration logic#1127
Merged
hishamco merged 1 commit intosimplcommerce:masterfrom Apr 5, 2025
Merged
Conversation
hishamco
reviewed
Apr 3, 2025
| { | ||
| c.SwaggerDoc("v1", new OpenApiInfo { Title = "SimplCommerce API", Version = "v1" }); | ||
| }); | ||
| builder.Services.ConfigureModules(); |
Member
There was a problem hiding this comment.
Some of the moved registration is not a part of the modules configuration?!!
Author
There was a problem hiding this comment.
@hishamco Could you please point out which specific registrations you feel don't belong in the modules configuration? I'd like to understand the intended organization better.
80f2728 to
e651bcf
Compare
Author
|
@hishamco comments addressed, kindly review the PR, thanks. |
hishamco
reviewed
Apr 4, 2025
| /// </summary> | ||
| /// <param name="services">The <see cref="IServiceCollection"/> to add module services to.</param> | ||
| /// <returns>The same service collection so that multiple calls can be chained.</returns> | ||
| public static IServiceCollection ConfigureModules(this IServiceCollection services) |
Member
There was a problem hiding this comment.
I'm agree with this extension, please revert the others, coz the order sometimes is matter
e651bcf to
23f6cc7
Compare
23f6cc7 to
e74b0ee
Compare
Author
|
Addressed pr comments, @hishamco please verify, thanks. |
hishamco
reviewed
Apr 5, 2025
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics; | ||
| using System.IdentityModel.Tokens.Jwt; |
Member
There was a problem hiding this comment.
Last note make sure from the added usings
Author
hishamco
approved these changes
Apr 5, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR contains the following points: