static void Main(string[] args) { // registerService = new MMIRegisterServiceImplementation(); registerService.OnAdapterRegistered += RegisterService_OnAdapterRegistered; ///Start the register server registerServer = new MMIRegisterThriftServer(RuntimeData.MMIRegisterAddress.Port, registerService); registerServer.Start(); //Setup the environment SetupEnvironment(@"..\Adapters", @"..\MMUs", @"..\Services"); System.Console.ReadLine(); Dispose(); }
/// <summary> /// Method to start the register server /// </summary> public void Start() { StopButton.IsEnabled = true; StartButton.Header = "_Restart"; ///Start the register server this.registerServer = new MMIRegisterThriftServer(RuntimeData.MMIRegisterAddress.Port, this.registerService); this.registerServer.Start(); //Update the title text of the window UpdateTitleBar(); //Get the datapath string datapath = this.settings.DataPath; //Setup the folder structure if not available this.CheckFolderStructure(datapath); //Set up the environment this.SetupEnvironment(datapath + "Adapters/", datapath + "MMUs/", datapath + "Services/"); }