VelopackApp Class
Namespace: Velopack
Assembly: Velopack
Assembly Version: 0.0.942+a011233
VelopackApp helps you to handle app activation events correctly. This should be used as early as possible in your application startup code. (eg. the beginning of Main() in Program.cs)
public sealed class VelopackApp
Inheritance: object → VelopackApp
Methods
Name | Description |
---|---|
Build() | Creates and returns a new Velopack application builder. |
Run(ILogger) | Runs the Velopack application startup code and triggers any configured hooks. |
SetArgs(string[]) | 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. |
SetAutoApplyOnStartup(bool) | Set whether to automatically apply downloaded updates on startup. This is ON by default. |
SetLocator(IVelopackLocator) | Override the default IVelopackLocator used to search for application paths. This will be cached and potentially re-used throughout the lifetime of the application. |
WithAfterInstallFastCallback(VelopackHook) | 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. |
WithAfterUpdateFastCallback(VelopackHook) | 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. |
WithBeforeUninstallFastCallback(VelopackHook) | 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. |
WithBeforeUpdateFastCallback(VelopackHook) | 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. |
WithFirstRun(VelopackHook) | This hook is triggered when the application is started for the first time after installation. |
WithRestarted(VelopackHook) | This hook is triggered when the application is restarted by Velopack after installing updates. |
Documentation generated by MdDocs