예제 #1
0
        // -- constructor

        /// <summary>
        /// The constructor gets the concrete validator injected and instanciates the concrete arguments of RuntimeArgs type
        /// </summary>
        /// <param name="validator">The validator concretion could be of type BasicValidator or a derived class</param>
        public RuntimeController(BasicValidator validator) : base()
        {
            _log       = LoggingProvider.CreateLogger <RuntimeController>();
            _validator = validator;
            _args      = new RuntimeArgs();

            base.IterationPassed += OnIterationPassed;
            base.Started         += OnStarted;
            base.Stopped         += OnStopped;
        }
예제 #2
0
        // -- methods

        /// <summary>
        /// The arguments must be of type RuntimeArgs.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        public override RuntimeBase With(ArgumentsBase args)
        {
            _args = args as RuntimeArgs;
            return(this);
        }