Esempio n. 1
0
            public RuntimeVariables()
            {
                string filename = "settings.xml";

                persistence = new XMLPersistenceDictionary(logger, filename, false);
                if (!System.IO.File.Exists(filename))
                {
                    persistence.save();
                }
            }
Esempio n. 2
0
            public string savenow(BotFunctionData BotInput)
            {
                StringBuilder responsebuilder = new StringBuilder();

                System.Diagnostics.Stopwatch swatch = new System.Diagnostics.Stopwatch();
                swatch.Start();
                lock (persistence)
                {
                    persistence.save(persistence.filename);
                }
                swatch.Stop();
                responsebuilder.AppendFormat("Saved to {0} in {1}ms!", persistence.filename, swatch.ElapsedMilliseconds);
                return(responsebuilder.ToString());
            }
Esempio n. 3
0
            public RuntimeVariables()
            {
                string filename = "settings.xml";

                persistence = new XMLPersistenceDictionary(logger, filename, false);
                if (!System.IO.File.Exists(filename))
                    persistence.save();
            }