Exemplo n.º 1
0
 public MemorySessionFactoryTest()
 {
     Options = new BoltServerOptions();
     SesionHandler = new Mock<IServerSessionHandler>(MockBehavior.Loose);
     Subject = new MemorySessionFactory(Options, SesionHandler.Object);
     Instance = new InstanceInternal();
 }
Exemplo n.º 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;
     });
 }
Exemplo n.º 3
0
 public ContractSession(MemorySessionFactory parent, string session, object instance)
 {
     _parent = parent;
     Instance = instance;
     SessionId = session;
     TimeStamp = DateTime.UtcNow;
 }