/// <summary> /// PxSession instance'ini kaydeder (ASPNETCORE Session üzerine) /// </summary> /// <param name="pSession"></param> public static void Save(PxSession pSession) { if (_store != null) { _store.Set <PxSession>(SESSION_STORE_KEY, pSession); return; } //_singletonInstance = pSession; }
/// <summary> /// İlgili request için PxSession instance'ını getirir /// </summary> /// <returns></returns> public static PxSession Get() { PxSession instance = null; if (_store != null) { _store.Get <PxSession>(SESSION_STORE_KEY, out instance); } if (instance == null) { instance = new PxSession(); } return(instance); }