/// <summary> /// Prepares the execution context before the current node is run. /// </summary> /// <param name="context">Source context for preparation.</param> /// <param name="result">The result reference to add to the current context.</param> /// <returns>The execution context to be used in node execution.</returns> protected virtual IExecutionContext <T> PrepareExecutionContext(IExecutionContext <T> context, NodeResult result) { LogWriter.Debug("Preparing the execution context for execution."); context.AddResult(result); return(context); }
/// <summary> /// Prepares the execution context before the current node is run. /// </summary> /// <param name="context">Source context for preparation.</param> /// <param name="result">The result reference to add to the current context.</param> /// <returns>The execution context to be used in node execution.</returns> protected sealed override IExecutionContext <T> PrepareExecutionContext(IExecutionContext <T> context, NodeResult result) { LogWriter.Debug("Preparing execution context."); var resultContext = new ExecutionContext <T>(context, result); context.AddResult(result); return(resultContext); }