Exemple #1
0
        private MediumNode(string pathname, ProjectionsSubsystem projectionsSubsystem, bool runProjections)
            : base(pathname, subsystems: new []{projectionsSubsystem})
        {
            _projections = projectionsSubsystem;
            RegisterWebControllers(new[] {NodeSubsystems.Projections} );
            RegisterUIProjections();
}
 public static MediumNode Create(string pathname, bool runProjections)
 {
     var projectionsSubsystem = new ProjectionsSubsystem(
             projectionWorkerThreadCount: 1,
             runProjections: runProjections ? RunProjections.All : RunProjections.System);
     return new MediumNode(pathname, projectionsSubsystem, runProjections);
 }
 public void SetUp()
 {
     if (!UseExternalEventStore)
     {
         var projections = new ProjectionsSubsystem(1, RunProjections.All);
         Node = new MiniNode(PathName, skipInitializeStandardUsersCheck: false, inMemDb:true, subsystems: new ISubsystem[] { projections });
         Node.Start();
         TcpEndPoint = Node.TcpEndPoint;
         HttpEndPoint = Node.HttpEndPoint;
     }
     else
     {
         TcpEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"),1113);
         HttpEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"),2113);
     }
     ReceiverAddress = new Address("comp1", "store1");
     SenderAddress = new Address("comp2", "store1");
     ConnectionConfiguration = new ConnectionConfiguration(ConnectionSettings.Create().SetDefaultUserCredentials(AdminCredentials), null, TcpEndPoint, HttpEndPoint, "");
     Thread.Sleep(5000);
 }