예제 #1
0
        public static DependencyControllerRouter Get()
        {
            var router = new DependencyControllerRouter();

            var container = router.Container;

            container.Register <IUserService, UserService>();
            container.Register <ILogService, LogService>();
            container.Register <IPostService, PostService>();
            container.Register <ModPanelDbContext>(Lifestyle.Scoped);

            container.Verify();

            return(router);
        }
        public static DependencyControllerRouter Initialize()
        {
            DependencyControllerRouter router = new DependencyControllerRouter();

            Container container = router.Container;

            container.Register <IUserService, UserService>();
            container.Register <IContestService, ContestService>();
            container.Register <ISubmissionService, SubmissionService>();
            container.Register <JudgeDbFinalExam>(Lifestyle.Scoped);

            container.Verify();

            return(router);
        }