Class LegacyStorageMigration
- Namespace
- VpnHood.AppLib.App.WindowsTun
- Assembly
- VpnHood.AppLib.App.WindowsTun.dll
Provides the copy of the app's files from the person's own folder, where the releases before the service kept them, at the service's first start.
[Obsolete("Migration (2026-09): drop a few months after it ships, with its calls in Connect.Windows.Web and Client.Windows.Web and LegacyStorageMigrationTest.")]
public static class LegacyStorageMigration
- Inheritance
-
LegacyStorageMigration
- Inherited Members
Remarks
It runs only as LocalSystem, as the service does, and only where the service's storage has no settings yet. It copies only the known files, skipping those that are links, and only from an administrator's folder, as those releases ran elevated; the settings go last, so a start cut short before them copies again.
Methods
TryImport(string, string)
Copies the newest such folder's files into the service's storage, logging a failure.
public static void TryImport(string storagePath, string legacyFolderName)