[dotnet] [bidi] Dedicated RealmInfoEventArgs type for OnRealmCreated event - #17240
Conversation
Review Summary by QodoAdd RealmInfoEventArgs type hierarchy for OnRealmCreated event
WalkthroughsDescription• Introduces dedicated RealmInfoEventArgs hierarchy for event subscriptions • Separates event argument types from data model types • Implements polymorphic JSON deserialization for realm types • Improves type safety and consistency across event handlers File Changes1. dotnet/src/webdriver/BiDi/Json/Converters/Polymorphic/RealmInfoEventArgsConverter.cs
|
Code Review by Qodo
1. OnRealmCreatedAsync handler type changed
|


Now all event args types are really
*EventArgs.💥 What does this PR do?
Refactors the handling of the "realm created" event in the BiDi Script module to support polymorphic event arguments and improve type safety. The main change is the introduction of a new
RealmInfoEventArgshierarchy, replacing the previousRealmInfotype for event subscriptions and serialization. This enables more precise event argument types for different realm kinds and lays groundwork for future extensibility.🔄 Types of changes