Exemplo n.º 1
0
        /// <summary>
        /// Installs all required components and dependencies for the Mvc infrastructure package.
        /// </summary>
        public MvcInstaller(MvcInstallerParameters parameters)
        {
            Ensure.That(() => parameters).IsNotNull();

            this.parameters = parameters;
        }
Exemplo n.º 2
0
        private MvcInstallerParameters GetMvcInstallerParameters()
        {
            Assembly modelAssembly = typeof(UserLoginModel).Assembly;
            Assembly controllerAssembly = typeof(HomeController).Assembly;
            ActionInvokerFilters filters = new ActionInvokerFilters();
            Assembly jobAssembly = typeof(FacebookService).Assembly;
            Assembly[] mapperAssemblies = GetMapperAssemblies();
            Assembly hubAssembly = typeof(LogHub).Assembly;

            MvcInstallerParameters parameters = new MvcInstallerParameters
            (
                modelAssembly,
                viewAssembly,
                controllerAssembly,
                applicationTitle,
                resourceAssemblies,
                filters,
                jobAssembly,
                mapperAssemblies,
                hubAssembly
            );
            return parameters;
        }