public static ICoreObject GetBoardConfigurationByName(this ILifelistService lifelist,
                                                              ICoreObject localBoard,
                                                              string ConfigurationName)
        {
            ICoreObjectCollection configurations = lifelist.GetAllBoardConfigurations(localBoard);

            foreach (ICoreObject config in configurations)
            {
                IOamIdentification attributes = CoreObjectExtension.GetAttributes <IOamIdentification>(config);
                if (attributes != null && attributes.OamName == ConfigurationName)
                {
                    return(config);
                }
            }
            return(null);
        }
        public static ICoreObject GetBoardConfigurationByName(this ILifelistService lifelist,
                                                              string ConfigurationName,
                                                              bool forceScan = true)
        {
            ICoreObjectCollection boards = lifelist.GetLocalInterfaceCards(forceScan);

            foreach (ICoreObject localBoard in boards)
            {
                var configurations = lifelist.GetAllBoardConfigurations(localBoard);
                foreach (ICoreObject config in configurations)
                {
                    var attributes = ObjectFrame.ICoreObjectExtensions.GetAttributes <IOamIdentification>(config);
                    if (attributes != null && attributes.OamName == ConfigurationName)
                    {
                        return(config);
                    }
                }
            }
            return(null);
        }