Closed VikasVikas593 closed 4 months ago
Reveiw task created: https://virtocommerce.atlassian.net/browse/VCST-1414
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
@VikasVikas593
The new code forces the use of any first implementation of IIndexDocumentChangesProvider. However, in this context, we specifically need MemberDocumentChangesProvider.
Solution: To ensure MemberDocumentChangesProvider is used, create a custom implementation and override the DI registration as shown below:
public class CustomMemberDocumentChangesProvider : MemberDocumentChangesProvider
{
// Custom implementation
}
serviceCollection.AddSingleton<MemberDocumentChangesProvider, CustomMemberDocumentChangesProvider>();
This way, the correct provider is used, and you have the flexibility to override it with a custom implementation if needed.
Description: Dependency injection for MemberDocumentChangesProvider is done thor' interface rather than concrete class to ease the extension / custom modules
References
QA-test:
Jira-link:
Artifact URL: