Example #1
0
        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();
            }
        }
Example #2
0
 public AuditBusinessDataClassesDataContext() :
     base(EsbConfig.getConnStringByDBName("EsbAuditDB"), mappingSource)
 {
     OnCreated();
 }
Example #3
0
 public ServiceDirectoryDCDataContext() :
     base(EsbConfig.getConnStringByDBName("EsbServiceDirectoryDB"), mappingSource)
 {
     OnCreated();
 }
 public ExceptionDataClassesDataContext() :
     base(EsbConfig.getConnStringByDBName("EsbExceptionDb"), mappingSource)
 {
     OnCreated();
 }