Example #1
0
        public void Run()
        {
            Console.Title = "Task Manager Client";

            var module = new TaskManagerModule();

            var kernel = new StandardKernel(module);
            var notifier = kernel.Get<UserNotifier>();

            var greeting = notifier.GenerateGreeting();
            Console.WriteLine(greeting);

            for (string s; ((s = Console.ReadLine()) != null); )
            {
                kernel.Get<LineParser>().ExecuteCommand(s);
            }
        }
Example #2
0
        public void Run()
        {
            Console.Title = "Task Manager Client";

            var module = new TaskManagerModule();

            var kernel   = new StandardKernel(module);
            var notifier = kernel.Get <UserNotifier>();

            var greeting = notifier.GenerateGreeting();

            Console.WriteLine(greeting);

            for (string s; ((s = Console.ReadLine()) != null);)
            {
                kernel.Get <LineParser>().ExecuteCommand(s);
            }
        }