Esempio 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();
        }
Esempio n. 2
0
        public static StandardKernel NewKernel()
        {
            NinjectModule registrations = new ScheduleRegistration();

            return(new StandardKernel(registrations));
        }