public ClusterWebUiController(IPublisher publisher, NodeSubsystems[] enabledNodeSubsystems)
     : base(publisher)
 {
     _enabledNodeSubsystems = enabledNodeSubsystems;
 
     var clusterNodeFsRoot = MiniWeb.GetWebRootFileSystemDirectory();
     _clusterNodeWeb = new MiniWeb("/web", Path.Combine(clusterNodeFsRoot, @"clusternode-web"));
 }
        public WebSiteController(IPublisher publisher, NodeSubsystems[] enabledNodeSubsystems)
            : base(publisher)
        {
            _enabledNodeSubsystems = enabledNodeSubsystems;
            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"));
        }
        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"));
            _singleNodeJs = new MiniWeb("/web/es/js/projections", Path.Combine(singleNodeFSRoot, Path.Combine("singlenode-web", "js", "projections")));
        }
        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"));
        }
示例#5
0
 public WebSiteController(IPublisher publisher)
     : base(publisher)
 {
     string fileSystemWebRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Web");
     _miniWeb = new MiniWeb("/web", Path.Combine(fileSystemWebRoot, @"web"));
 }
 public UsersWebController(IPublisher publisher): base(publisher)
 {
     string nodeFSRoot = MiniWeb.GetWebRootFileSystemDirectory("EventStore.Web");
     _miniWeb = new MiniWeb("/web/users", Path.Combine(nodeFSRoot, "Users", "web"));
 }
 public ClusterWebUiController(IPublisher publisher, NodeSubsystems[] enabledNodeSubsystems)
     : base(publisher)
 {
     _enabledNodeSubsystems = enabledNodeSubsystems;
     _clusterNodeWeb = new MiniWeb("/web");
 }