Skip to content

Conversation

@softworkz
Copy link
Collaborator

...as it's no longer used for property operations only.

Copilot AI review requested due to automatic review settings November 15, 2025 09:11
Copilot finished reviewing on behalf of softworkz November 15, 2025 09:12
Copy link

Copilot AI left a 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 PropertyGetter class to Invocator in ApiBase.cs
  • Renamed GetPropertyAsync<T>() method to InvokeAsync<T>()
  • Updated all API classes to use this.InvokeAsync<T>() instead of GetPropertyAsync<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.

@softworkz softworkz force-pushed the submit_invocation_rename branch from 1f496a2 to 0cf1e69 Compare November 15, 2025 09:17
@softworkz softworkz force-pushed the submit_invocation_rename branch from 0cf1e69 to 385dcfb Compare November 15, 2025 09:21
@FlorianRappl FlorianRappl added this to the 0.2.0 milestone Nov 15, 2025
Copy link
Collaborator

@FlorianRappl FlorianRappl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@FlorianRappl FlorianRappl merged commit 7889057 into ElectronNET:develop Nov 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants