public ScheduledTaskExecution(string storedProcedureName, int scheduledTaskid, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy)
 {
     _scheduledTaskid = scheduledTaskid;
     _storedProcedureName = storedProcedureName;
     _threadSafeDataAccess = threadSafeDataAccess;
     _exitStrategy = exitStrategy;
 }
 public ScheduledTaskExecution(IScheduledTask scheduledTask, int scheduledTaskId, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy)
 {
     _scheduledTaskid = scheduledTaskId;
     _cSharpScheduledTask = scheduledTask;
     _threadSafeDataAccess = threadSafeDataAccess;
     _exitStrategy = exitStrategy;
 }
        public WorkerOperationContext(int sleepIntervalTimeInSeconds, string loggingCategory, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy, Action onEngineRevolutionCallBack = null)
#endif
        {
            SleepIntervalTimeInSeconds = sleepIntervalTimeInSeconds;
            LoggingCategory = loggingCategory;
            EngineRevolutionCallBack = onEngineRevolutionCallBack;
            ThreadSafeDataAccess = threadSafeDataAccess;
            this.ExitStrategy = exitStrategy;
#if DEBUG
            EngineRevolutionUnsafeCallback = onEngineRevolutionUnsafeCallBack;
#endif
        }
示例#4
0
        public WorkflowContext(int sleepIntervalTimeInSeconds, 
                               ILocationConfig locationConfig, 
                               Dictionary<string, Type> activityTypes,
                               string loggingCategory,
                               IThreadSafeDataAccess threadSafeDataAccess,
                               ExitStrategy exitStrategy,
                               Action onEngineRevolutionCallBack = null,
                               int parallelThreadCount = -1)

            : base(sleepIntervalTimeInSeconds, loggingCategory, threadSafeDataAccess, exitStrategy, onEngineRevolutionCallBack)
        {
            LocationConfig = locationConfig;
            ActivityTypes = activityTypes;
            ParallelThreadCount = parallelThreadCount;
        }
 public ScheduledTaskMonitorContext(int sleepIntervalTimeInSeconds, Dictionary<string, Type> scheduledTaskTypes, string loggingCategory, 
                                    IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy, Action onEngineRevolutionCallBack = null)
     : base(sleepIntervalTimeInSeconds, loggingCategory, threadSafeDataAccess, exitStrategy, onEngineRevolutionCallBack)
 {
     ScheduledTaskTypes = scheduledTaskTypes;
 }
 public DashboardTaskOperationContext(int sleepIntervalTimeInSeconds, string loggingCategory, IThreadSafeDataAccess threadSafeDataAccess,
     ExitStrategy exitStrategy, Dictionary<string, Type> dashboardTaskClassTypes, Action onEngineRevolutionCallBack = null, Action onEngineRevolutionUnsafeCallBack = null) 
     : base(sleepIntervalTimeInSeconds, loggingCategory, threadSafeDataAccess, exitStrategy, onEngineRevolutionCallBack)
 {
     DashboardTaskClassTypes = dashboardTaskClassTypes;
 }
 public WorkerOperationContext(int sleepIntervalTimeInSeconds, string loggingCategory, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy, Action onEngineRevolutionCallBack = null, Action onEngineRevolutionUnsafeCallBack = null)
示例#8
0
 internal void SetThreadSafeDataAccessObject(IThreadSafeDataAccess threadSafeDataAccess)
 {
     ThreadSafeDataAccess = threadSafeDataAccess;
 }