[dotnet] [bidi] Dedicated json context for all modules#16652
[dotnet] [bidi] Dedicated json context for all modules#16652nvborisenko merged 12 commits intoSeleniumHQ:trunkfrom
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