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; }
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); }