Ejemplo n.º 1
0
        internal static void Register(Assembly callingAssembly, ComponentModelDelegate componentModelDelegate)
        {
            CallingAssembly = callingAssembly;

            var container = new WindsorContainer();

            container.Install(FromAssembly.This(new JustEatInstallerFactory()));
            Container = container;
        }
Ejemplo n.º 2
0
        protected virtual void RaiseComponentModelCreated(ComponentModel model)
        {
            ComponentModelDelegate eventDelegate = (ComponentModelDelegate)events[ComponentModelCreatedEvent];

            if (eventDelegate != null)
            {
                eventDelegate(model);
            }
        }
Ejemplo n.º 3
0
        internal static void Register(Assembly callingAssembly, ComponentModelDelegate componentModelDelegate)
        {
            CallingAssembly = callingAssembly;

            var container = new WindsorContainer();

            // This allows you to inject all implementations of a certain interface
            container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel));
            container.Kernel.Resolver.AddSubResolver(new ListResolver(container.Kernel));
            container.Install(FromAssembly.This(new GplInstallerFactory()));
            Container = container;
        }
Ejemplo n.º 4
0
 public static void SetComponentRegistrationCallback(ComponentModelDelegate callback)
 {
     _container.Kernel.ComponentModelCreated += callback;
 }