public TemplateConnection() : base(Assembly.GetExecutingAssembly().Location) { ApplicationIdentifier = "TemplateService"; if (ApplicationSettings.ContainsKey("GenesysConfigURIPri")) { ConfigServerPrimaryUri = ApplicationSettings["GenesysConfigURIPri"]; } if (ApplicationSettings.ContainsKey("GenesysConfigURIBack")) { ConfigServerBackupUri = ApplicationSettings["GenesysConfigURIBack"]; } if (ApplicationSettings.ContainsKey("AppName")) { ApplicationConnectedTo = ApplicationSettings["AppName"]; } SetupDone = false; instance = this; }
public static void SetUpControllerConnections() { ConfigServer = TemplateConnection.GetConfigServerInstance(); MessageServer = (MessageServer)ConfigServer.MessageServer; TemplateService = new TemplateService(ConfigServer, MessageServer); }