public SessionHandlerTest() { Options = new BoltServerOptions { SessionHeader = "Test" }; Subject = new ServerSessionHandler(Options); }
public MemorySessionFactoryTest() { Options = new BoltServerOptions(); SesionHandler = new Mock <IServerSessionHandler>(MockBehavior.Loose); Subject = new MemorySessionFactory(Options, SesionHandler.Object); Instance = new InstanceInternal(); }
public MemorySessionFactoryTest() { Options = new BoltServerOptions(); SesionHandler = new Mock<IServerSessionHandler>(MockBehavior.Loose); Subject = new MemorySessionFactory(Options, SesionHandler.Object); Instance = new InstanceInternal(); }
public MemorySessionFactory(BoltServerOptions options, IServerSessionHandler sessionHandler = null) { _options = options; _sessionHandler = sessionHandler ?? new ServerSessionHandler(options); _timeoutCheckInterval = TimeSpan.FromMinutes(1); ResetTimer(); }
public ServerSessionHandler(IOptions<BoltServerOptions> options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } _options = options.Options; }
public ServerSessionHandler(IOptions <BoltServerOptions> options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } _options = options.Value; }
public DistributedSessionFactory(BoltServerOptions options, ISessionStore sessionStore, IServerSessionHandler sessionHandler = null) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (sessionStore == null) { throw new ArgumentNullException(nameof(sessionStore)); } _options = options; _sessionStore = sessionStore; _sessionHandler = sessionHandler ?? new ServerSessionHandler(options); if (_options.SessionTimeout <= TimeSpan.Zero) { throw new InvalidOperationException("Session timeout is not set."); } }
public SessionHandlerTest() { Options = new BoltServerOptions {SessionHeader = "Test"}; Subject = new ServerSessionHandler(Options); }
public ServerSessionHandlerInternal(Mock <IInstanceProviderActions> actions, BoltServerOptions options) : base(options) { _actions = actions; }