From 7cbc40a0906e22f8147f3c4a69ef30a8449c8195 Mon Sep 17 00:00:00 2001 From: PROger4ever Date: Sat, 16 Dec 2017 23:15:16 +0500 Subject: [PATCH] Make Session constructor public for custom ISessionStore implementations Load() method in ISessionStore requires public constructor of class Session in some cases. E.g., loading session from a db or a key-value store, manual loading from text-file, JSON/XML and so on. --- TLSharp.Core/Session.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TLSharp.Core/Session.cs b/TLSharp.Core/Session.cs index 7a13da9..987c5d2 100644 --- a/TLSharp.Core/Session.cs +++ b/TLSharp.Core/Session.cs @@ -73,7 +73,7 @@ namespace TLSharp.Core private ISessionStore _store; - private Session(ISessionStore store) + public Session(ISessionStore store) { random = new Random(); _store = store;