public MvcControllerInstaller(MvcInstallerParameters parameters) { if (parameters == null) { throw new ArgumentNullException("parameters"); } this.parameters = parameters; }
private MvcInstallerParameters GetMvcInstallerParameters() { Assembly modelAssembly = typeof(LogModel).Assembly; Assembly controllerAssembly = typeof(HomeController).Assembly; ActionInvokerFilters filters = new ActionInvokerFilters(); Assembly jobAssembly = typeof(LogService).Assembly; Assembly[] mapperAssemblies = GetMapperAssemblies(); Assembly hubAssembly = typeof(LogHub).Assembly; MvcInstallerParameters parameters = new MvcInstallerParameters ( modelAssembly, viewAssembly, controllerAssembly, applicationTitle, resourceAssemblies, filters, jobAssembly, mapperAssemblies, hubAssembly ); return parameters; }