Exemplo n.º 1
0
        public OperatorFactory(ExecutionEngine engine, IChainableResolver resolver)
        {
            this.engine = engine;

            this.Dependencies = resolver;
            this.Models       = new OperatorModelFactory(Dependencies);
            this.Verbs        = new VerbFactory(engine);
        }
Exemplo n.º 2
0
        public OperatorModelFactory(IChainableResolver resolver)
        {
            this.resolver = resolver;
            this.sources  = new List <OperatorSource>();

            var validation = new ValidationContext(resolver, typeof(OperatorModel).IsAssignableFrom);

            this.Validator  = validation.Create();
            this.Namespaces = new OperatorNamespaceMapper(this.sources);
        }