Skip to content

Commit 7877bb9

Browse files
committed
Renames hook methods for consistency
Renames 'With*' VelopackApp hook methods to 'On*' for improved consistency across the API. This change provides a more intuitive naming convention for event handlers and makes the API more user-friendly.
1 parent 0277ce5 commit 7877bb9

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

docs/reference/cs/Velopack/VelopackApp/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ public sealed class VelopackApp
3333
| [SetArgs(string\[\])](methods/SetArgs.md) | Override the command line arguments used to determine the Velopack hook to run. If this is not set, the command line arguments passed to the application will be used. |
3434
| [SetAutoApplyOnStartup(bool)](methods/SetAutoApplyOnStartup.md) | Set whether to automatically apply downloaded updates on startup. This is ON by default. |
3535
| [SetLocator(IVelopackLocator)](methods/SetLocator.md) | Override the default [IVelopackLocator](../Locators/IVelopackLocator/index.md) used to search for application paths. This will be cached and potentially re\-used throughout the lifetime of the application. |
36-
| [WithAfterInstallFastCallback(VelopackHook)](methods/WithAfterInstallFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 30 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
37-
| [WithAfterUpdateFastCallback(VelopackHook)](methods/WithAfterUpdateFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 15 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
38-
| [WithBeforeUninstallFastCallback(VelopackHook)](methods/WithBeforeUninstallFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 30 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
39-
| [WithBeforeUpdateFastCallback(VelopackHook)](methods/WithBeforeUpdateFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 15 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
36+
| [OnAfterInstallFastCallback(VelopackHook)](methods/OnAfterInstallFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 30 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
37+
| [OnAfterUpdateFastCallback(VelopackHook)](methods/OnAfterUpdateFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 15 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
38+
| [OnBeforeUninstallFastCallback(VelopackHook)](methods/OnBeforeUninstallFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 30 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
39+
| [OnBeforeUpdateFastCallback(VelopackHook)](methods/OnBeforeUpdateFastCallback.md) | WARNING: FastCallback hooks are run during critical stages of Velopack operations. Your code will be run and then Exit(int) will be called. If your code has not completed within 15 seconds, it will be terminated. Only supported on windows; On other operating systems, this will never be called. |
4040
| [OnFirstRun(VelopackHook)](methods/OnFirstRun.md) | This hook is triggered when the application is started for the first time after installation. |
41-
| [WithRestarted(VelopackHook)](methods/WithRestarted.md) | This hook is triggered when the application is restarted by Velopack after installing updates. |
41+
| [OnRestarted(VelopackHook)](methods/OnRestarted.md) | This hook is triggered when the application is restarted by Velopack after installing updates. |
4242

4343
___
4444

docs/reference/cs/Velopack/VelopackApp/methods/WithAfterInstallFastCallback.md renamed to docs/reference/cs/Velopack/VelopackApp/methods/OnAfterInstallFastCallback.md

File renamed without changes.

docs/reference/cs/Velopack/VelopackApp/methods/WithAfterUpdateFastCallback.md renamed to docs/reference/cs/Velopack/VelopackApp/methods/OnAfterUpdateFastCallback.md

File renamed without changes.

docs/reference/cs/Velopack/VelopackApp/methods/WithBeforeUninstallFastCallback.md renamed to docs/reference/cs/Velopack/VelopackApp/methods/OnBeforeUninstallFastCallback.md

File renamed without changes.

docs/reference/cs/Velopack/VelopackApp/methods/WithBeforeUpdateFastCallback.md renamed to docs/reference/cs/Velopack/VelopackApp/methods/OnBeforeUpdateFastCallback.md

File renamed without changes.

docs/reference/cs/Velopack/VelopackApp/methods/WithFirstRun.md renamed to docs/reference/cs/Velopack/VelopackApp/methods/OnFirstRun.md

File renamed without changes.

docs/reference/cs/Velopack/VelopackApp/methods/WithRestarted.md renamed to docs/reference/cs/Velopack/VelopackApp/methods/OnRestarted.md

File renamed without changes.

0 commit comments

Comments
 (0)