diff options
Diffstat (limited to 'Libs/VNLib.Plugins.Essentials.Sessions')
-rw-r--r-- | Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs | 4 | ||||
-rw-r--r-- | Libs/VNLib.Plugins.Essentials.Sessions/VNLib.Plugins.Essentials.Sessions.Memory.csproj | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs index f58129a..07ae04b 100644 --- a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs +++ b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs @@ -77,10 +77,10 @@ namespace VNLib.Plugins.Essentials.Sessions.Memory _ = plugin.DeferTask(() => _sessions.CleanupExiredAsync(localized, plugin.UnloadToken)); //Schedule garbage collector - _ = plugin.ScheduleInterval(this, TimeSpan.FromMinutes(1)); + plugin.ScheduleInterval(this, TimeSpan.FromMinutes(1)); //Call cleanup on exit - _ = plugin.UnloadToken.RegisterUnobserved(_sessions.Cleanup); + _ = plugin.RegisterForUnload(_sessions.Cleanup); } Task IIntervalScheduleable.OnIntervalAsync(ILogProvider log, CancellationToken cancellationToken) diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/VNLib.Plugins.Essentials.Sessions.Memory.csproj b/Libs/VNLib.Plugins.Essentials.Sessions/VNLib.Plugins.Essentials.Sessions.Memory.csproj index c4a65f5..78fe298 100644 --- a/Libs/VNLib.Plugins.Essentials.Sessions/VNLib.Plugins.Essentials.Sessions.Memory.csproj +++ b/Libs/VNLib.Plugins.Essentials.Sessions/VNLib.Plugins.Essentials.Sessions.Memory.csproj @@ -8,6 +8,8 @@ <Authors>Vaughn Nugent</Authors> <Copyright>Copyright © 2022 Vaughn Nugent</Copyright> <PackageProjectUrl>https://www.vaughnnugent.com/resources</PackageProjectUrl> + <SignAssembly>True</SignAssembly> + <AssemblyOriginatorKeyFile>\\vaughnnugent.com\Internal\Folder Redirection\vman\Documents\Programming\Software\StrongNameingKey.snk</AssemblyOriginatorKeyFile> </PropertyGroup> <!-- Resolve nuget dll files and store them in the output dir --> |