protected virtual void Application_End()
 {
     if (DependencyResolver != null)
     {
         DependencyResolver.Dispose();
         DependencyResolver = null;
     }
 }
 protected virtual void Application_End()
 {
     if (DependencyResolver != null)
     {
         DependencyResolver.Dispose();
         DependencyResolver = null;
     }
 }
예제 #3
0
        // Methods
        protected virtual void Application_Start()
        {
            RegisterDependencies(_container);
            AreaRegistration.RegisterAllAreas(IocContainer);

            var depencenyResolver = new DynamoDependencyResolver(_container);

            RegisterDependencyResolver(depencenyResolver);
            RegisterModelValidators(depencenyResolver);
        }
예제 #4
0
        public static void PreStart()
        {
            var container = new IocContainer(() => new SessionLifetime(), CompileMode.Dynamic, new DirectIndex());

            RegisterDependencies(container);

            var resolver = new DynamoDependencyResolver(container);

            RegisterMvcDependencyResolver(resolver);
            RegisterWebApiDependencyResolver(resolver);
            RegisterModelValidators(resolver);
        }
        private static void CompileIoCContainer(bool setContainer)
        {
            var container = new IocContainer(() => new SessionLifetime(), CompileMode.Dynamic, new DirectIndex());

            DynamoRegistration.RegisterDependencies(container);

            var resolver = new DynamoDependencyResolver(container);

            RegisterMvcDependencyResolver(resolver);
            RegisterWebApiDependencyResolver(resolver);
            RegisterModelValidators(resolver);

            if (setContainer) _container = container;
        }
        // Methods
        protected virtual void Application_Start()
        {
            var container = new IocContainer();

            var depencenyResolver = new DynamoDependencyResolver(container);

            DependencyResolver = depencenyResolver;

            RegisterMvcDependencyResolver(depencenyResolver);
            RegisterWebApiDependencyResolver(depencenyResolver);

            RegisterModelValidators(depencenyResolver);

            RegisterDependencies(container);

            RegisterAreas(container);
        }
        // Methods
        protected virtual void Application_Start()
        {
            var container = new IocContainer();

            var depencenyResolver = new DynamoDependencyResolver(container);

            DependencyResolver = depencenyResolver;

            RegisterMvcDependencyResolver(depencenyResolver);
            RegisterWebApiDependencyResolver(depencenyResolver);

            RegisterModelValidators(depencenyResolver);

            RegisterDependencies(container);

            RegisterAreas(container);
        }