示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AlgorithmActivator"/>
        /// class.
        /// </summary>
        /// <param name="registrar">The <see cref="IAlgorithmRegistrar"/> containing
        /// the information about the known algorithms.</param>
        /// <exception cref="ArgumentNullException">registrar is null.</exception>
        public AlgorithmActivator(IAlgorithmRegistrar registrar)
        {
            if (registrar == null)
            {
                throw new ArgumentNullException("registrar");
            }

            _registrar = registrar;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RegistryFactory"/>
        /// class.
        /// </summary>
        /// <param name="algorithmRegistry">The <see cref="IAlgorithmRegistrar"/>
        /// containing the loaded algorithm information.</param>
        public RegistryFactory(IAlgorithmRegistrar algorithmRegistry)
        {
            if (algorithmRegistry == null)
            {
                throw new ArgumentNullException("algorithmRegistry");
            }

            _activator = new AlgorithmActivator(algorithmRegistry);
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PipelineManager"/>
        /// class.
        /// </summary>
        /// <param name="repo">The repository of pipeline information.</param>
        /// <param name="algs">The algorithm registry object.</param>
        public PipelineManager(IPipelineRepository repo, IAlgorithmRegistrar algs)
        {
            if (repo == null)
            {
                throw new ArgumentNullException("repo");
            }

            if (algs == null)
            {
                throw new ArgumentNullException("algs");
            }

            _repo = repo;
            _algorithmRegistry = algs;
        }