-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Always provide new json options for modules #16691
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
[dotnet] [bidi] Always provide new json options for modules #16691
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
|
||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
Now modules are not required to create new instance based on provided options. It is safe to modify original options.
💥 What does this PR do?
Simplify new modules development.
🔄 Types of changes
PR Type
Enhancement
Description
Refactored JSON options creation to provide fresh instances per module
Moved JsonSerializerOptions initialization to static factory method
Simplified module Initialize methods by directly modifying passed options
Eliminates need for modules to create new JsonSerializerOptions copies
Diagram Walkthrough
File Walkthrough
12 files
Extract JSON options creation to factory methodSimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directlySimplify Initialize to modify passed options directly