protected virtual CoherenceSessionStore CreateSessionStore() { CoherenceSessionStore store = new CoherenceSessionStore(); store.ApplicationId = "UnitTests"; store.ModelManager = CreateModelManager(CreateSerializer()); store.Timeout = TimeSpan.FromMinutes(1); return(store); }
protected virtual CoherenceSessionStore CreateSessionStore() { CoherenceSessionStore store = new CoherenceSessionStore(); store.ApplicationId = "SessionConfigTests"; store.ModelManager = new SplitSessionModelManager(new BinarySerializer(), SESSION_CACHE_NAME_TEST, 512); store.Timeout = TimeSpan.FromMilliseconds(1000); store.SessionEndEnabled = true; store.SetItemExpireCallback(Session_OnEnd); return(store); }