コード例 #1
0
ファイル: ConsoleApplication.cs プロジェクト: rlgnak/Clif
        /// <summary>
        /// Constructs a <see cref="ConsoleApplication"/>
        /// </summary>
        /// <param name="commandModuleResolver"></param>
        /// <param name="commandRouteBuilder"></param>
        /// <param name="catalog"></param>
        /// <param name="commandResolver"></param>
        public ConsoleApplication(ICommandModuleResolver commandModuleResolver, ICommandRouteBuilder commandRouteBuilder, ICommandCatalog catalog, ICommandResolver commandResolver)
        {
            CommandModuleResolver = commandModuleResolver;
            CommandRouteBuilder = commandRouteBuilder;
            Catalog = catalog;
            CommandResolver = commandResolver;

            var modules = CommandModuleResolver.GetCommandModules();

            RegisterModules(modules);
        }
コード例 #2
0
        /// <summary>
        /// Constructs a <see cref="ConsoleApplication"/>
        /// </summary>
        /// <param name="commandModuleResolver"></param>
        /// <param name="commandRouteBuilder"></param>
        /// <param name="catalog"></param>
        /// <param name="commandResolver"></param>
        public ConsoleApplication(ICommandModuleResolver commandModuleResolver, ICommandRouteBuilder commandRouteBuilder, ICommandCatalog catalog, ICommandResolver commandResolver)
        {
            CommandModuleResolver = commandModuleResolver;
            CommandRouteBuilder   = commandRouteBuilder;
            Catalog         = catalog;
            CommandResolver = commandResolver;

            var modules = CommandModuleResolver.GetCommandModules();

            RegisterModules(modules);
        }