Beispiel #1
0
        public DataCenterCore(BasicConfiguration config)
        {
            //Configura la instancia de logging
            XmlConfigurator.Configure();

            QueueManager.Instance().SetIn(config.CoreInQueue);
            QueueManager.Instance().SetOut(config.CoreOutQueue);

            inMsgMgr.mBasicConfiguration     = config;
            outMsgMgr.mBasicConfiguration    = config;
            schedulerMgr.mBasicConfiguration = config;
        }
Beispiel #2
0
        public static BasicConfiguration FromNameValueCollection(NameValueCollection nvc)
        {
            BasicConfiguration basicConfiguration = new BasicConfiguration();

            basicConfiguration.ConnectionString = nvc["ConnectionString"];
            basicConfiguration.CoreInQueue      = nvc["CoreInQueue"];
            basicConfiguration.CoreOutQueue     = nvc["CoreOutQueue"];
            basicConfiguration.DCUrl            = nvc["DCUrl"];
            basicConfiguration.DDPURL           = nvc["DDPURL"];
            basicConfiguration.IDEUrl           = nvc["IDEUrl"];
            basicConfiguration.DCDebug          = nvc["DCDebug"];

            return(basicConfiguration);
        }