GSF.ServiceProcess.ServiceHelper.SaveSettings C# (CSharp) Method

SaveSettings() public method

Saves settings of the ServiceHelper to the config file if the PersistSettings property is set to true.
has a value of null or empty string.
public SaveSettings ( bool includeServiceComponents ) : void
includeServiceComponents bool A boolean value that indicates whether the settings of are to be saved.
return void
        public void SaveSettings(bool includeServiceComponents)
        {
            SaveSettings();

            if (!includeServiceComponents)
                return;

            IPersistSettings typedComponent;
            lock (m_serviceComponents)
            {
                foreach (object component in m_serviceComponents)
                {
                    typedComponent = component as IPersistSettings;

                    if ((object)typedComponent != null)
                        typedComponent.SaveSettings();
                }
            }
        }

Same methods

ServiceHelper::SaveSettings ( ) : void
ServiceHelper