-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Dedicated json context for all modules #16652
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] Dedicated json context for all modules #16652
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
Yahoo, it is easier than I thought! |
User description
Dedicated serialization context for Browser module.
🔄 Types of changes
PR Type
Enhancement
Description
Create dedicated
BrowserJsonSerializerContextfor Browser moduleRemove Browser types from shared
BiDiJsonSerializerContextUpdate Browser module to use module-specific serialization context
Improve separation of concerns for JSON serialization
Diagram Walkthrough
File Walkthrough
BrowserModule.cs
Implement dedicated Browser JSON serialization contextdotnet/src/webdriver/BiDi/Browser/BrowserModule.cs
BiDiJsonSerializerContextwith newBrowserJsonSerializerContextInitializemethod to chainBiDiJsonSerializerContextintoBrowser-specific context
BrowserJsonSerializerContextclass with[JsonSerializable]attributes for all Browser types
_jsonContext.Browser_CloseCommandto_jsonContext.CloseCommandBiDiJsonSerializerContext.cs
Remove Browser types from shared contextdotnet/src/webdriver/BiDi/Json/BiDiJsonSerializerContext.cs
[JsonSerializable]attributes for Browser module typesTypeInfoPropertyName