-
-
Notifications
You must be signed in to change notification settings - Fork 95
Prevent test classes triggerring IFirstInXEventReceiver multiple times #3131
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
Conversation
|
Claude finished @thomhurst's task —— View job PR Review CompleteReviewing PR #3131: "Prevent test classes triggering IFirstInXEventReceiver multiple times" Todo List:
SummaryThis PR successfully addresses issue #2951 by implementing proper deduplication logic for Code Quality & Best Practices ✅Excellent improvements:
ThreadSafeDictionary.cs improvements:
Potential Issues & Concerns
|
…s and refactor injection logic
…zation logic and remove redundant property injection
|
Claude finished @thomhurst's task —— View job PR Review: Prevent test classes triggering IFirstInXEventReceiver multiple timesTodo List:
SummaryThis PR successfully addresses issue #2951 by implementing proper deduplication logic for Code Quality & Best Practices ✅Excellent improvements:
ThreadSafeDictionary.cs improvements:
Core Fix Analysis ✅EventReceiverOrchestrator.cs:31-76 - The deduplication logic is well-implemented: // Track which objects have already been initialized to avoid duplicates
private readonly HashSet<object> _initializedObjects = new();
// Track registered First event receiver types to avoid duplicate registrations
private readonly HashSet<Type> _registeredFirstEventReceiverTypes = new();The fix correctly:
Potential Issues & Concerns
|
Fixes #2951