Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        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();
        }