public JobApplication(HpScheduleOptions options = null)
        {
            if (options == null)
            {
                options = new HpScheduleOptions();
            }

            //初始化日志
            if (options.Nlog)
            {
                //Log.config(options.Log4net);

                Loging.setLogType(EnumLoging.LogConsole);
                //简单格式的Log
                // if (options.Debug) Log.SimpleFormat = true;
            }

            //初始化配置
            if (!string.IsNullOrEmpty(options.Config))
            {
                ConfigurationCenter.addConfigurationImpl(new JsonConfiguration(options.Config));

                if (!ConfigurationCenter.load())
                {
                    throw new Exception("加载配置文件失败");
                }
            }
        }