AccountManagement.UI.QueryModels.ContainerInstallers.QueryModelGeneratorsInstaller.Install C# (CSharp) Method

Install() public method

public Install ( IWindsorContainer container, IConfigurationStore store ) : void
container IWindsorContainer
store IConfigurationStore
return void
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Kernel.Resolver.AddSubResolver(new TypedCollectionResolver<IAccountManagementQueryModelGenerator>(container.Kernel));

            container.Register(
                //Note the use of a custom interface. This lets us keep query model generators for different systems apart in the wiring easily.
                Classes.FromThisAssembly()
                    .IncludeNonPublicTypes()
                    .BasedOn(typeof(IAccountManagementQueryModelGenerator))
                    .WithServiceBase()
                    .LifestylePerWebRequest()
                );
        }
    }
QueryModelGeneratorsInstaller