public void OnNext(IAllocatedEvaluator value)
            {
                var contextConf = ContextConfiguration.ConfigurationModule
                                  .Set(ContextConfiguration.Identifier, ContextId)
                                  .Build();

                var taskConf = TaskConfiguration.ConfigurationModule
                               .Set(TaskConfiguration.Identifier, TaskId)
                               .Set(TaskConfiguration.Task, GenericType <TestConstructorExceptionTask> .Class)
                               .Build();

                value.SubmitContextAndTask(contextConf, taskConf);
            }
Ejemplo n.º 2
0
        public void OnNext(IAllocatedEvaluator eval)
        {
            Logger.Log(Level.Info, string.Format(CultureInfo.InvariantCulture, "Received evaluator. Runtime Name: {0}.", eval.GetEvaluatorDescriptor().RuntimeName));
            string taskId = "Task_" + eval.Id;

            IConfiguration contextConfiguration = ContextConfiguration.ConfigurationModule
                                                  .Set(ContextConfiguration.Identifier, taskId)
                                                  .Build();

            IConfiguration taskConfiguration = TaskConfiguration.ConfigurationModule
                                               .Set(TaskConfiguration.Identifier, taskId)
                                               .Set(TaskConfiguration.Task, GenericType <RuntimeNameTask> .Class)
                                               .Build();

            eval.SubmitContextAndTask(contextConfiguration, taskConfiguration);
        }