Beispiel #1
0
        /// <summary>
        /// Gets the Job section settings of the app.config
        /// </summary>
        public static IJobController CreateJobController()
        {
            JobSection section = (JobSection)ConfigurationManager.GetSection(SECTION_NAME);

            if (!string.IsNullOrEmpty(section.JobControllerProviderType))
            {
                IJobController customController = Activator.CreateInstance(Type.GetType(section.JobControllerProviderType)) as IJobController;
                if (customController != null)
                {
                    return(customController.CreateJobControllerInstance());
                }
            }

            return(section);
        }