Ejemplo n.º 1
0
        public static bool VerifyContainer(string filename)
        {
            if (!(GetServiceStatus(filename) is "Starting" || GetServiceStatus(filename) is "Running"))
            {
                ComposerNew.StartService(filename);
                Thread.Sleep(100);

                ///Check ServiceRunningState enum from the DockerFluent library
                if (GetServiceStatus(filename) is "Starting" || GetServiceStatus(filename) is "Running")
                {
                    while (GetServiceStatus(filename) is "Starting")
                    {
                        Thread.Sleep(100);
                    }
                    var result = StopService(filename);
                    return(true);
                }
                return(false);
            }
            return(false);
        }
Ejemplo n.º 2
0
 public Startup(IConfiguration configuration)
 {
     Configuration = configuration;
     ComposerNew.InitializeLists();
 }