public SchedulerLogic() { NameValueCollection properties = new NameValueCollection(); properties["quartz.scheduler.instanceName"] = "RemoteClient"; // set remoting expoter properties["quartz.scheduler.proxy"] = "true"; properties["quartz.scheduler.proxy.address"] = EsbConfig.getConfigValue("QuartzServer"); // First we must get a reference to a scheduler ISchedulerFactory sf = new StdSchedulerFactory(properties); int count = sf.AllSchedulers.Count; if (count > 0) { sched = sf.AllSchedulers.Cast <IScheduler>().First(); } else { sched = sf.GetScheduler(); } }
public AuditBusinessDataClassesDataContext() : base(EsbConfig.getConnStringByDBName("EsbAuditDB"), mappingSource) { OnCreated(); }
public ServiceDirectoryDCDataContext() : base(EsbConfig.getConnStringByDBName("EsbServiceDirectoryDB"), mappingSource) { OnCreated(); }
public ExceptionDataClassesDataContext() : base(EsbConfig.getConnStringByDBName("EsbExceptionDb"), mappingSource) { OnCreated(); }