Exemplo n.º 1
0
        static void Main(string[] args)
        {
            StandardKernel kernel = ScheduleRegistration.NewKernel();
            ScheduleViewer sv     = (ScheduleViewer)kernel.Get <IScheduleViewer>();

            Console.WriteLine(sv.RenderSchedule());

            Console.WriteLine("Press any key...");
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public static StandardKernel NewKernel()
        {
            NinjectModule registrations = new ScheduleRegistration();

            return(new StandardKernel(registrations));
        }