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.
This commit is contained in:
PROger4ever 2017-12-16 23:15:16 +05:00
parent 0940d3d982
commit 7cbc40a090

View file

@ -73,7 +73,7 @@ namespace TLSharp.Core
private ISessionStore _store; private ISessionStore _store;
private Session(ISessionStore store) public Session(ISessionStore store)
{ {
random = new Random(); random = new Random();
_store = store; _store = store;