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(); }
public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler) : this(commandJob, errorHandler, System.Configuration.ConfigurationManager.AppSettings[JobUtilHelper.JobProviderConnectionString]) { }
public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler, string conn) : this(commandJob, errorHandler, conn, null) { }
public JobsProvider(ICommandJobBase <T> commandJob, IProccessErrorHandler <T> errorHandler, IOrganizationService crmService) : this(commandJob, errorHandler, null, crmService) { }