static void Main(string[] args) { var container = new Container("Container to be killed"); var containerService = new ContainerListener(); containerService.Register(container); Console.Write(container.Name); container.Kill("pillow"); Console.ReadLine(); }