コード例 #1
0
        public static int Main(string[] args)
        {
            var commandCoreApp = new CommandCoreApp();

            commandCoreApp.ConfigureServices(sp =>
            {
                sp.Register <IOutputWriter, OutputWriter>();
            });
            return(commandCoreApp.Parse(args));
        }
コード例 #2
0
        static int Main(string[] args)
        {
            var commandCoreApp = new CommandCoreApp();

            commandCoreApp.ConfigureServices(sp =>
            {
                sp.Register <IDbRepository, DbRepository>();
                sp.Register <ITodoTaskRepository, TodoTaskRepository>();
                sp.Register <IPriorityColorChooser, PriorityColorChooser>();
                sp.Register <ICategoryRepository, CategoryRepository>();
            });

            return(commandCoreApp.Parse(args));
        }