From 9bb5ddd8f19c0ecabd7af4ee58d80c16826bc183 Mon Sep 17 00:00:00 2001 From: vman Date: Wed, 28 Dec 2022 14:19:32 -0500 Subject: Cache provider abstractions, reduced deps --- Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs | 4 ++-- .../VNLib.Plugins.Essentials.Sessions.Memory.csproj | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'Libs/VNLib.Plugins.Essentials.Sessions') 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 @@ Vaughn Nugent Copyright © 2022 Vaughn Nugent https://www.vaughnnugent.com/resources + True + \\vaughnnugent.com\Internal\Folder Redirection\vman\Documents\Programming\Software\StrongNameingKey.snk -- cgit