Example #1
0
        public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler, string conn, IOrganizationService crmService)
        {
            if (String.IsNullOrEmpty(conn))
            {
                connectionString = ConfigurationManager.AppSettings[JobUtilHelper.JobProviderConnectionString];
            }
            else
            {
                connectionString = conn;
            }

            JobUtilHelper.InitConnectionString(connectionString);

            if (crmService == null)
            {
                LoadCrmService();
            }
            else
            {
                service = crmService;
            }

            commandJobHandler             = commandJob;
            _errorHandler                 = errorHandler;
            commandJobHandler.JobProvider = this;
            runningJob = new RunningJob();
        }
Example #2
0
 public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler)
     : this(commandJob, errorHandler, System.Configuration.ConfigurationManager.AppSettings[JobUtilHelper.JobProviderConnectionString])
 {
 }
Example #3
0
 public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler, string conn)
     : this(commandJob, errorHandler, conn, null)
 {
 }
Example #4
0
 public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler, IOrganizationService crmService)
     : this(commandJob, errorHandler, null, crmService)
 {
 }