-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[dotnet] [bidi] Initialize internal modules without Lazy #15979
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
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.
Nice simplication!
Thanks Nick and Mike! |
User description
💥 What does this PR do?
Don't use
Lazy<T>
because it reserves a reference to all modules, which is not AOT friendly.💡 Additional Considerations
Probably we want to make an initialization in Property (with locking to be thread-safe)?
🔄 Types of changes
PR Type
Other
Description
Remove
Lazy<T>
initialization from BiDi modules for AOT compatibilityInitialize modules directly in constructor instead of lazy loading
Update property accessors to return modules directly
Changes diagram
Changes walkthrough 📝
BiDi.cs
Remove lazy initialization from BiDi modules
dotnet/src/webdriver/BiDi/BiDi.cs
.Value