Method ReloadPackageAsync(string, List<string>, CancellationToken)

Assembly: redb.Tsak.Core.dll

Reloads a .tpkg package in place: the old modules leave the registry silently (no events), the
new package is opened, its modules are registered silently, and the coordinator recreates their
contexts as one batch — so persisted context state (e.g. autoStart=false of a named context)
survives the reload. Unlike UnloadModuleAsync (permanent removal), the module stays.
If a module of the new version does not come up, the previous package is restored (old module
instances and their contexts back, modules only the new version added stopped) and the file is
skipped until it changes. A module the new version no longer ships has its context stopped.

public Task<int> ReloadPackageAsync(string tpkgPath, List<string> oldModuleNames, CancellationToken ct = default)