public MemorySessionFactoryTest()
 {
     Options = new BoltServerOptions();
     SesionHandler = new Mock<IServerSessionHandler>(MockBehavior.Loose);
     Subject = new MemorySessionFactory(Options, SesionHandler.Object);
     Instance = new InstanceInternal();
 }
Exemple #2
0
 protected override void Configure(IApplicationBuilder appBuilder)
 {
     appBuilder.UseBolt(h =>
     {
         Factory = new MemorySessionFactory(h.Configuration.Options);
         IContractInvoker contract = h.UseSession<ITestContractStateFull, TestContractStateFull>(Factory);
         InstanceProvider = (SessionInstanceProvider)contract.InstanceProvider;
     });
 }
 public ContractSession(MemorySessionFactory parent, string session, object instance)
 {
     _parent = parent;
     Instance = instance;
     SessionId = session;
     TimeStamp = DateTime.UtcNow;
 }