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

Use AddPermissionProvider & AddNavigationProvider in OpenID #16960

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hishamco
Copy link
Member

@hishamco hishamco commented Nov 6, 2024

No description provided.

@MikeAlhayek
Copy link
Member

Can you please do the same thing everywhere so we don't have 1 PR per file?

https://github.com/search?q=repo%3AOrchardCMS%2FOrchardCore+ServiceDescriptor.Scoped%3C&type=code

@hishamco
Copy link
Member Author

hishamco commented Nov 6, 2024

The aim is not to replace the ServiceDescriptor in this PR but to use the extension methods when it's possible

@hishamco
Copy link
Member Author

hishamco commented Nov 6, 2024

These are the only not updated in the code base

@MikeAlhayek
Copy link
Member

To make this PR more useful, I suggest to replace all these

https://github.com/search?q=repo%3AOrchardCMS%2FOrchardCore+services.TryAddEnumerable&type=code

this way we don't see many PR like this doing the same thing just for another service.

@hishamco
Copy link
Member Author

hishamco commented Nov 6, 2024

Just one thing I'm afraid of is to break existing behavior coz TryAddXXX is not similar to AddXXX

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.

2 participants