Exemplo n.º 1
0
 protected void Application_Start()
 {
     IoCConfigurator.ConfigureDependencyInjection();
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
Exemplo n.º 2
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     IoCConfigurator.ConfigureUnityContainer();
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     AutoMapperConfiguration.Configure();
     GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.Re‌​ferenceLoopHandling = ReferenceLoopHandling.Ignore;
 }
Exemplo n.º 3
0
        public void Setup(IIoCContainer container)
        {
            container.RegisterTypeSingleton <IConnectionStringProvider, ConnectionStringProvider>();
            var iocApplicationConfigurator = new IoCConfigurator();
            var iocDataConfigurator        = new Data.IoCConfigurator();

            iocApplicationConfigurator.Configure(container);
            iocDataConfigurator.Configure(container);
        }