예제 #1
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            Assembly viewAssembly = typeof(ApplicationInstaller).Assembly;

            string title = Views.Shared.Resources.Application.Title;

            IList <ResourceAssemblyLocation> locations = new List <ResourceAssemblyLocation>
            {
                new ResourceAssemblyLocation
                {
                    Assembly  = viewAssembly,
                    Namespace = Constants.JavaScriptResourceNamespaceRoot
                }
            };
            WindsorInstaller installer = new WindsorInstaller(viewAssembly, title, locations);

            container.Install(installer);
        }
예제 #2
0
 public void Application_Start(out IAccountService accountService, out IDocumentService bookService, out IUserService userService, out ILoanService loanService)
 {
     container = new WindsorContainer();
     WindsorInstaller.Install(container);
     WindsorResolver.ResolveDependencies(container, out accountService, out bookService, out userService, out loanService);
 }
예제 #3
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            WindsorInstaller installer = new WindsorInstaller();

            container.Install(installer);
        }