Beispiel #1
0
        /// <summary>
        /// Loads history values of changed variables from persistent storage.
        /// </summary>
        public void LoadHistory()
        {
            Dictionary <string, IList <string> > history = EnvironmentSessionProvider.LoadHistory(Target);
            EnvironmentVariable x;

            if (history != null)
            {
                foreach (KeyValuePair <string, IList <string> > item in history)
                {
                    x = Find(_vars, item.Key);

                    if (x != null)
                    {
                        x.ApplyHistory(item.Value);
                    }
                }
            }
        }