static public bool App서버_정보_설정(AppServerConfig appServerConfig) { IPCUseHttp = appServerConfig.IPCUseHttp; AppServerFullPathDir = appServerConfig.AppServerFullPathDir; AppServerName = appServerConfig.AppServerName; AppServerExeFileName = appServerConfig.AppServerExeFileName; CommonLib.DevLog.Write(string.Format("App서버 이름:{0}", AppServerInfo.AppServerName)); CommonLib.DevLog.Write(string.Format("App서버 full path:{0}", AppServerInfo.AppServerFullPathDir)); CommonLib.DevLog.Write(string.Format("App서버 실행 파일 이름:{0}", AppServerInfo.AppServerExeFileName)); return(true); }
public void Init(bool isEnableInnerMsg, string serverAddress, AppServerConfig appServerConfig, IPCCommuConfig ipcConfig) { CommonLib.InnerMessageManager.SetEnable(isEnableInnerMsg); MyIP = appServerConfig.IPAddress; AppServerInfo.App서버_정보_설정(appServerConfig); hubConnection = new HubConnection(serverAddress); RegistHubProxy(hubConnection); SendMessages.Init(agentHubProxy); IPCCommu.Init(ipcConfig.MyPort, ipcConfig.OtherPort, ipcConfig.MaxPacketSize, ipcConfig.MaxPacketBufferSize); IPCCommu.InitClient(appServerConfig.AppServerName); ComputerStatus.Init(); }