Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            WindsorInstaller installer = new WindsorInstaller();

            container.Install(installer);
        }