Beispiel #1
0
        public int?GetOldGeneration()
        {
            GlobalPrmService gps = new GlobalPrmService();

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

            return(k);
        }
Beispiel #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);
        }