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; }
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; }
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; }
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; }