diff --git a/src/chocolatey/infrastructure.app/registration/ContainerBinding.cs b/src/chocolatey/infrastructure.app/registration/ContainerBinding.cs index fd35fb716a..507905c2b0 100644 --- a/src/chocolatey/infrastructure.app/registration/ContainerBinding.cs +++ b/src/chocolatey/infrastructure.app/registration/ContainerBinding.cs @@ -87,6 +87,16 @@ public void RegisterComponents(Container container) }; return list.AsReadOnly(); }, Lifestyle.Singleton); + + container.Register>(() => + { + var list = new List + { + container.GetInstance(), + new WebPiService(container.GetInstance(),container.GetInstance()) + }; + return list.AsReadOnly(); + }, Lifestyle.Singleton); container.Register(Lifestyle.Singleton); EventManager.initialize_with(container.GetInstance);