Esempio n. 1
0
        public int?GetOldGeneration()
        {
            GlobalPrmService gps = new GlobalPrmService();

            gps.Init();
            var k = gps.GetInt(GKey);

            return(k);
        }
Esempio n. 2
0
        protected int GetNewGenaration()
        {
            GlobalPrmService gps = new GlobalPrmService();

            gps.Init();
            var k  = gps.GetInt(GKey);
            var nk = (k ?? 1) + 1;

            gps.Set(GKey, (nk).ToString());
            gps.Flush();
            return(nk);
        }