internal static void Register(Assembly callingAssembly, ComponentModelDelegate componentModelDelegate) { CallingAssembly = callingAssembly; var container = new WindsorContainer(); container.Install(FromAssembly.This(new JustEatInstallerFactory())); Container = container; }
protected virtual void RaiseComponentModelCreated(ComponentModel model) { ComponentModelDelegate eventDelegate = (ComponentModelDelegate)events[ComponentModelCreatedEvent]; if (eventDelegate != null) { eventDelegate(model); } }
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; }
public static void SetComponentRegistrationCallback(ComponentModelDelegate callback) { _container.Kernel.ComponentModelCreated += callback; }