コード例 #1
0
        private static WindsorContainer CreateContainer()
        {
            var container = new WindsorContainer();

            container.Install(FromAssembly.Containing <IOrdersRepository>());
            container.AutoRegisterHandlersFromAssembly(typeof(OrderHandler).Assembly);
            return(container);
        }