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

Add AddIndexProvider and AddScopedIndexProvider extensions #13060

Merged
merged 6 commits into from Jan 13, 2023

Conversation

MikeAlhayek
Copy link
Member

No description provided.

return services.AddSingleton<IIndexProvider, TIndexProvider>();
}

public static IServiceCollection AddScopedIndexProvider<TIndexProvider>(this IServiceCollection services)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the AddIndexProvider but not this one because naming is confusing little bit it registers IIndexProvider as scoped service or registers IScopedIndexProvider

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. I renamed it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the API name itself not the parameter ;) let us hear the folks feedback

@OrchardCMS OrchardCMS deleted a comment from hishamco Jan 9, 2023
@MikeAlhayek MikeAlhayek merged commit af2c2bb into OrchardCMS:main Jan 13, 2023
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.

None yet

3 participants