Exemplo n.º 1
0
 public TaskStatus(HeartBeatManager heartBeatManager, string contextId, string taskId, Optional<ISet<ITaskMessageSource>> evaluatorMessageSources)
 {
     _contextId = contextId;
     _taskId = taskId;
     _heartBeatManager = heartBeatManager;
     _taskLifeCycle = new TaskLifeCycle();
     _evaluatorMessageSources = evaluatorMessageSources;
     State = TaskState.Init;
 }
Exemplo n.º 2
0
 public TaskStatus(HeartBeatManager heartBeatManager, string contextId, string taskId, Optional <ISet <ITaskMessageSource> > evaluatorMessageSources)
 {
     _contextId               = contextId;
     _taskId                  = taskId;
     _heartBeatManager        = heartBeatManager;
     _taskLifeCycle           = new TaskLifeCycle();
     _evaluatorMessageSources = evaluatorMessageSources;
     State = TaskState.Init;
 }
Exemplo n.º 3
0
 private TaskStatus(
     [Parameter(typeof(ContextConfigurationOptions.ContextIdentifier))] string contextId,
     [Parameter(typeof(TaskConfigurationOptions.Identifier))] string taskId,
     [Parameter(typeof(TaskConfigurationOptions.TaskMessageSources))] ISet<ITaskMessageSource> taskMessageSources,
     IHeartBeatManager heartBeatManager)
 {
     _heartBeatManager = heartBeatManager;
     _taskLifeCycle = new TaskLifeCycle();
     _evaluatorMessageSources = Optional<ISet<ITaskMessageSource>>.OfNullable(taskMessageSources);
     State = TaskState.Init;
     _taskId = taskId;
     _contextId = contextId;
 }
Exemplo n.º 4
0
        private TaskStatus(
            [Parameter(typeof(ContextConfigurationOptions.ContextIdentifier))] string contextId,
            [Parameter(typeof(TaskConfigurationOptions.Identifier))] string taskId,
            [Parameter(typeof(TaskConfigurationOptions.TaskMessageSources))] ISet <ITaskMessageSource> taskMessageSources,
            TaskLifeCycle taskLifeCycle,
            IHeartBeatManager heartBeatManager)
        {
            _heartBeatManager        = heartBeatManager;
            _taskLifeCycle           = taskLifeCycle;
            _evaluatorMessageSources = Optional <ISet <ITaskMessageSource> > .OfNullable(taskMessageSources);

            State      = TaskState.Init;
            _taskId    = taskId;
            _contextId = contextId;
        }