internal void CloseAllEnvironments()
        {
            foreach (GingerRunner gr in Runners)
            {
                if (gr.UseSpecificEnvironment)
                {
                    if (gr.ProjEnvironment != null)
                    {
                        gr.ProjEnvironment.CloseEnvironment();
                    }
                }
            }

            if (RunsetExecutionEnvironment != null)
            {
                RunsetExecutionEnvironment.CloseEnvironment();
            }
        }
Ejemplo n.º 2
0
        internal void CloseAllEnvironments()
        {
            foreach (GingerRunner gr in Runners)
            {
                if (gr.UseSpecificEnvironment)
                {
                    if (gr.ProjEnvironment != null)
                    {
                        foreach (EnvApplication ea in gr.ProjEnvironment.Applications)
                        {
                            foreach (Database db in ea.Dbs)
                            {
                                if (db.DatabaseOperations == null)
                                {
                                    DatabaseOperations databaseOperations = new DatabaseOperations(db);
                                    db.DatabaseOperations = databaseOperations;
                                }
                            }
                        }
                        gr.ProjEnvironment.CloseEnvironment();
                    }
                }
            }

            if (RunsetExecutionEnvironment != null)
            {
                foreach (EnvApplication ea in RunsetExecutionEnvironment.Applications)
                {
                    foreach (Database db in ea.Dbs)
                    {
                        if (db.DatabaseOperations == null)
                        {
                            DatabaseOperations databaseOperations = new DatabaseOperations(db);
                            db.DatabaseOperations = databaseOperations;
                        }
                    }
                }
                RunsetExecutionEnvironment.CloseEnvironment();
            }
        }