Ejemplo n.º 1
0
        public ProjectionsController(IPublisher publisher)
            : base(publisher)
        {
            var fileSystemWebRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Projections.Core");

            _miniWebPrelude = new MiniWeb("/web/js/projections/v8/Prelude", Path.Combine(fileSystemWebRoot, @"Prelude"));
        }
Ejemplo n.º 2
0
        public WebSiteController(IPublisher publisher)
            : base(publisher)
        {
            string fileSystemWebRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Web");

            _miniWeb = new MiniWeb("/web", Path.Combine(fileSystemWebRoot, @"web"));
        }
Ejemplo n.º 3
0
        public ClusterWebUiController(IPublisher publisher, NodeSubsystems[] enabledNodeSubsystems)
            : base(publisher)
        {
            _enabledNodeSubsystems = enabledNodeSubsystems;

            var clusterNodeFsRoot = MiniWeb.GetWebRootFileSystemDirectory();

            _clusterNodeWeb = new MiniWeb("/web", Path.Combine(clusterNodeFsRoot, @"clusternode-web"));
        }
Ejemplo n.º 4
0
        public WebSiteController(IPublisher publisher)
            : base(publisher)
        {
            string commonFSRoot     = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Web");
            string singleNodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.SingleNode.Web");

            _singleNodeWeb = new MiniWeb("/web", Path.Combine(singleNodeFSRoot, @"singlenode-web"));
            _commonWeb     = new MiniWeb("/web/es", Path.Combine(commonFSRoot, @"es-common-web"));
        }
Ejemplo n.º 5
0
        public ClusterWebUIController(IPublisher publisher, NodeSubsystems[] enabledNodeSubsystems)
            : base(publisher)
        {
            _enabledNodeSubsystems = enabledNodeSubsystems;

            string commonFSRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Web");
            //string clusterNodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory("../../../Cluster/src/EventStore.ClusterNode.Web");
            string clusterNodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory();

            _clusterNodeWeb = new MiniWeb("/web", Path.Combine(clusterNodeFSRoot, @"clusternode-web"));
            _commonWeb      = new MiniWeb("/web/es", Path.Combine(commonFSRoot, @"es-common-web"));
        }
Ejemplo n.º 6
0
        public ProjectionsController(IHttpForwarder httpForwarder, IPublisher publisher, IPublisher networkSendQueue)
            : base(publisher)
        {
            _httpForwarder = httpForwarder;

            var clusterNodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory();

            _clusterNodeJs = new MiniWeb("/web/es/js/projections", Path.Combine(clusterNodeFSRoot, Path.Combine("projections")));

            var fileSystemWebRoot = MiniWeb.GetWebRootFileSystemDirectory();

            _networkSendQueue = networkSendQueue;
            _miniWebPrelude   = new MiniWeb("/web/es/js/projections/v8/Prelude", Path.Combine(fileSystemWebRoot, @"Prelude"));
            _miniWebResources = new MiniWeb("/web/es/js/projections/resources", Path.Combine(fileSystemWebRoot, Path.Combine("web-resources", "js")));
        }
Ejemplo n.º 7
0
        public ProjectionsController(IHttpForwarder httpForwarder, IPublisher publisher, IPublisher networkSendQueue)
            : base(publisher)
        {
            _httpForwarder = httpForwarder;

            var singleNodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.SingleNode.Web");

            _singleNodeJs = new MiniWeb("/web/es/js/projections", Path.Combine(singleNodeFSRoot, Path.Combine("singlenode-web", "js", "projections")));

            var fileSystemWebRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Projections.Core");

            _networkSendQueue = networkSendQueue;
            _miniWebPrelude   = new MiniWeb("/web/es/js/projections/v8/Prelude", Path.Combine(fileSystemWebRoot, @"Prelude"));
            _miniWebResources = new MiniWeb("/web/es/js/projections/resources", Path.Combine(fileSystemWebRoot, Path.Combine("web-resources", "js")));
        }
Ejemplo n.º 8
0
        public UsersWebController(IPublisher publisher) : base(publisher)
        {
            string nodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Web");

            _miniWeb = new MiniWeb("/web/users", Path.Combine(nodeFSRoot, "Users", "web"));
        }