aboutsummaryrefslogtreecommitdiff
path: root/Libs/VNLib.Plugins.Essentials.Sessions
diff options
context:
space:
mode:
Diffstat (limited to 'Libs/VNLib.Plugins.Essentials.Sessions')
-rw-r--r--Libs/VNLib.Plugins.Essentials.Sessions/MemorySession.cs3
-rw-r--r--Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionConfig.cs5
-rw-r--r--Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs5
-rw-r--r--Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionStore.cs2
-rw-r--r--Libs/VNLib.Plugins.Essentials.Sessions/SessionIdFactory.cs3
-rw-r--r--Libs/VNLib.Plugins.Essentials.Sessions/VNLib.Plugins.Essentials.Sessions.Memory.csproj4
6 files changed, 12 insertions, 10 deletions
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySession.cs b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySession.cs
index 4e09b04..c3786be 100644
--- a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySession.cs
+++ b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySession.cs
@@ -2,10 +2,9 @@
using System.Net;
using System.Threading.Tasks;
using System.Collections.Generic;
-
-using VNLib.Net.Http;
using VNLib.Plugins.Essentials.Extensions;
+using VNLib.Net.Http;
using static VNLib.Plugins.Essentials.Sessions.ISessionExtensions;
#nullable enable
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionConfig.cs b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionConfig.cs
index cbbaf53..3b657da 100644
--- a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionConfig.cs
+++ b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionConfig.cs
@@ -1,7 +1,8 @@
using System;
+
using VNLib.Utils.Logging;
-namespace VNLib.Net.Sessions
+namespace VNLib.Plugins.Essentials.Sessions.Memory
{
/// <summary>
/// Represents configration variables used to create and operate http sessions.
@@ -15,7 +16,7 @@ namespace VNLib.Net.Sessions
/// <summary>
/// The size (in bytes) of the genreated SessionIds
/// </summary>
- public uint SessionIdSizeBytes { get; init; }
+ public uint SessionIdSizeBytes { get; init; }
/// <summary>
/// The amount of time a session is valid (within the backing store)
/// </summary>
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs
index df5dd59..9954206 100644
--- a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs
+++ b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionEntrypoint.cs
@@ -4,13 +4,12 @@ using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
-
using VNLib.Net.Http;
-using VNLib.Net.Sessions;
using VNLib.Utils.Logging;
using VNLib.Utils.Extensions;
-using VNLib.Plugins.Extensions.Loading.Configuration;
using VNLib.Plugins.Extensions.Loading.Events;
+using VNLib.Plugins.Extensions.Loading;
+using VNLib.Plugins.Essentials.Sessions.Runtime;
#nullable enable
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionStore.cs b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionStore.cs
index 388f998..3e728b9 100644
--- a/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionStore.cs
+++ b/Libs/VNLib.Plugins.Essentials.Sessions/MemorySessionStore.cs
@@ -4,11 +4,11 @@ using System.Threading.Tasks;
using System.Collections.Generic;
using VNLib.Net.Http;
-using VNLib.Net.Sessions;
using VNLib.Utils;
using VNLib.Utils.Async;
using VNLib.Utils.Extensions;
using VNLib.Plugins.Essentials.Extensions;
+using VNLib.Net.Http.Core;
#nullable enable
diff --git a/Libs/VNLib.Plugins.Essentials.Sessions/SessionIdFactory.cs b/Libs/VNLib.Plugins.Essentials.Sessions/SessionIdFactory.cs
index ff0608e..c3ac5bd 100644
--- a/Libs/VNLib.Plugins.Essentials.Sessions/SessionIdFactory.cs
+++ b/Libs/VNLib.Plugins.Essentials.Sessions/SessionIdFactory.cs
@@ -4,6 +4,7 @@ using System.Diagnostics.CodeAnalysis;
using VNLib.Hashing;
using VNLib.Net.Http;
using VNLib.Plugins.Essentials.Extensions;
+using VNLib.Plugins.Essentials.Sessions.Runtime;
#nullable enable
@@ -33,7 +34,7 @@ namespace VNLib.Plugins.Essentials.Sessions.Memory
//return session-id value from cookie value
return cookie;
}
-
+
public bool TryGetSessionId(IHttpEvent entity, [NotNullWhen(true)] out string? sessionId)
{
//Get authorization token and make sure its not too large to cause a buffer overflow
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 0d21b31..ca90155 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
@@ -33,10 +33,12 @@
<ItemGroup>
<ProjectReference Include="..\..\..\..\VNLib\Essentials\VNLib.Plugins.Essentials.csproj" />
<ProjectReference Include="..\..\..\..\VNLib\Http\VNLib.Net.Http.csproj" />
+ <ProjectReference Include="..\..\..\Extensions\VNLib.Plugins.Extensions.Loading\VNLib.Plugins.Extensions.Loading.csproj" />
+ <ProjectReference Include="..\..\..\PluginBase\VNLib.Plugins.PluginBase.csproj" />
<ProjectReference Include="..\VNLib.Plugins.Essentials.Sessions.Runtime\VNLib.Plugins.Essentials.Sessions.Runtime.csproj" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
- <Exec Command="start xcopy &quot;$(TargetDir)&quot; &quot;F:\Programming\Web Plugins\DevPlugins\SessionProviders\$(TargetName)&quot; /E /Y /R" />
+ <Exec Command="start xcopy &quot;$(TargetDir)&quot; &quot;F:\Programming\Web Plugins\DevPlugins\RuntimeAssets\$(TargetName)&quot; /E /Y /R" />
</Target>