Ejemplo n.º 1
0
 public ScheduledTaskExecution(string storedProcedureName, int scheduledTaskid, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy)
 {
     _scheduledTaskid = scheduledTaskid;
     _storedProcedureName = storedProcedureName;
     _threadSafeDataAccess = threadSafeDataAccess;
     _exitStrategy = exitStrategy;
 }
Ejemplo n.º 2
0
 public ScheduledTaskExecution(IScheduledTask scheduledTask, int scheduledTaskId, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy)
 {
     _scheduledTaskid = scheduledTaskId;
     _cSharpScheduledTask = scheduledTask;
     _threadSafeDataAccess = threadSafeDataAccess;
     _exitStrategy = exitStrategy;
 }
Ejemplo n.º 3
0
        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
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 7
0
 public WorkerOperationContext(int sleepIntervalTimeInSeconds, string loggingCategory, IThreadSafeDataAccess threadSafeDataAccess, ExitStrategy exitStrategy, Action onEngineRevolutionCallBack = null, Action onEngineRevolutionUnsafeCallBack = null)
Ejemplo n.º 8
0
 internal void SetThreadSafeDataAccessObject(IThreadSafeDataAccess threadSafeDataAccess)
 {
     ThreadSafeDataAccess = threadSafeDataAccess;
 }