Example #1
0
 public virtual void AddContainer(int containerId, Container container)
 {
     lock (_lock)
     {
         ContainersTable.Add(containerId, container);
     }
 }
Example #2
0
 public void UnLockContainer()
 {
     lock (_lock)
     {
         ContainersTable.Add(MigratedContainer.ContainerId, MigratedContainer);
         MigratedContainer = null;
         throw new NotImplementedException("Should Never be called");
     }
 }
 public override void AddContainer(int containerId, Container container)
 {
     lock (_lock)
     {
         var dockerCon = container as DockerContainer;
         if (!ImageManager.ContainsImage(dockerCon.ImageId))
         {
             throw new Exception("How Come");
         }
         ContainersTable.Add(containerId, container);
     }
 }