diff options
author | vman <public@vaughnnugent.com> | 2022-12-28 14:19:32 -0500 |
---|---|---|
committer | vman <public@vaughnnugent.com> | 2022-12-28 14:19:32 -0500 |
commit | 9bb5ddd8f19c0ecabd7af4ee58d80c16826bc183 (patch) | |
tree | 7f8a3863d18f4673294ab11e427fe0b77fd70abf /Libs/VNLib.Plugins.Essentials.Sessions | |
parent | 1f2b3530ebeafa162fe4df41e691c33cb2ff0009 (diff) |
Cache provider abstractions, reduced deps
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 --> |