-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] [bidi] Remove IEnumerable of command results #16219
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] Remove IEnumerable of command results #16219
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strongly like this direction!
User description
This contributes to #16095
💥 What does this PR do?
Remove syntax sugar and be more straightforward. Simplifying things as much possible. Any other sugar can be treated as "alternative API" via extensions.
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Remove IEnumerable implementation from BiDi command results
Simplify result classes to use primary constructors
Delete custom JSON converters for enumerable results
Update test code to access properties directly
Diagram Walkthrough
File Walkthrough
14 files
Simplify GetClientWindowsResult to primary constructorSimplify GetUserContextsResult to primary constructorUpdate GetRealms call to access Realms propertySimplify GetTreeResult to primary constructorSimplify LocateNodesResult to primary constructorRemove enumerable JSON converter registrationsDelete GetClientWindowsResult JSON converterDelete GetCookiesResult JSON converterDelete GetRealmsResult JSON converterDelete GetTreeResult JSON converterDelete GetUserContextsResult JSON converterDelete LocateNodesResult JSON converterSimplify GetRealmsResult to primary constructorSimplify GetCookiesResult to primary constructor8 files
Update test to access Contexts propertyUpdate tests to access result propertiesUpdate tests to access Contexts propertyUpdate test to access Nodes propertyUpdate test to access Realms propertyUpdate test to access Realms propertyUpdate tests to access Realms propertyUpdate tests to access Cookies property