aboutsummaryrefslogtreecommitdiff
path: root/plugins/SessionProvider/src/SessionProviderEntry.cs
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SessionProvider/src/SessionProviderEntry.cs')
-rw-r--r--plugins/SessionProvider/src/SessionProviderEntry.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/SessionProvider/src/SessionProviderEntry.cs b/plugins/SessionProvider/src/SessionProviderEntry.cs
index b3f924f..acd8bcc 100644
--- a/plugins/SessionProvider/src/SessionProviderEntry.cs
+++ b/plugins/SessionProvider/src/SessionProviderEntry.cs
@@ -47,11 +47,12 @@ namespace VNLib.Plugins.Essentials.Sessions
///<inheritdoc/>
public override string PluginName => "Essentials.Sessions";
- private SessionProvider? _provider;
+ private SessionProvider _provider = new();
/*
* Declare a service configuration method to
- * expose the session provider
+ * expose the session provider, the service container
+ * will dispose the provider instance
*/
[ServiceConfigurator]
@@ -154,6 +155,9 @@ namespace VNLib.Plugins.Essentials.Sessions
ProviderArray = loaded;
}
+ public SessionProvider()
+ { }
+
ValueTask<SessionHandle> ISessionProvider.GetSessionAsync(IHttpEvent entity, CancellationToken cancellationToken)
{
//Loop through providers