-
-
Notifications
You must be signed in to change notification settings - Fork 739
Rename PropertyGet to more generic Invocator #933
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
Rename PropertyGet to more generic Invocator #933
Conversation
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.
Pull Request Overview
This PR refactors the codebase to rename PropertyGetter to the more generic Invocator, reflecting that this component is no longer used exclusively for property operations. The changes update the base API class and propagate through multiple API files.
Key Changes
- Renamed
PropertyGetterclass toInvocatorinApiBase.cs - Renamed
GetPropertyAsync<T>()method toInvokeAsync<T>() - Updated all API classes to use
this.InvokeAsync<T>()instead ofGetPropertyAsync<T>()
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ElectronNET.API/API/ApiBase.cs | Core refactoring - renamed base class, methods, fields, and constants from PropertyGetter to Invocator terminology |
| src/ElectronNET.API/API/WebContents.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/Screen.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/Process.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/Notification.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/NativeTheme.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/Clipboard.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/BrowserWindow.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/BrowserView.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/AutoUpdater.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
| src/ElectronNET.API/API/App.cs | Updated method calls to use InvokeAsync instead of GetPropertyAsync |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
1f496a2 to
0cf1e69
Compare
0cf1e69 to
385dcfb
Compare
FlorianRappl
left a comment
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.
LGTM!
...as it's no longer used for property operations only.