Пример #1
0
        public OrchardHost(
            IServiceProvider serviceProvider,
            TextReader input, 
            TextWriter output, 
            string[] args)
        {
            _serviceProvider = serviceProvider;
            _input = input;
            _output = output;
            _logger = new OrchardConsoleLogger(input, output);

            _commandHostContextProvider = new CommandHostContextProvider(
                serviceProvider, _logger, args);
        }
Пример #2
0
        public OrchardHost(
            IServiceProvider serviceProvider,
            TextReader input,
            TextWriter output,
            string[] args)
        {
            _serviceProvider = serviceProvider;
            _input           = input;
            _output          = output;
            _logger          = new OrchardConsoleLogger(input, output);

            _commandHostContextProvider = new CommandHostContextProvider(
                serviceProvider, _logger, args);
        }