コード例 #1
0
        public StartupBasic()
        {
            var container = new Container();

            Register.Configuration(container);
            container.RegisterMvcControllers(Assembly.GetExecutingAssembly());
            DependencyResolver.SetResolver(new SimpleInjectorDependencyResolver(container));

            this._configuration = container.GetInstance <IConfiguration>();
            this._movieCup      = container.GetInstance <IMovieCup>();
        }
コード例 #2
0
 public CopaFilmeController(IConfiguration configuration, IMovieCup movieCup)
 {
     this._configuration = configuration;
     this._movieCup      = movieCup;
 }