示例#1
0
 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;
 }
示例#2
0
 public static void SetUpControllerConnections()
 {
     ConfigServer    = TemplateConnection.GetConfigServerInstance();
     MessageServer   = (MessageServer)ConfigServer.MessageServer;
     TemplateService = new TemplateService(ConfigServer, MessageServer);
 }