Пример #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();
 }
Пример #2
0
 public void Register(Container container)
 {
     container.ChangedName += Container_ChangedName;
 }