Exemple #1
0
        public SyncCookieRun AddCookieRun(byte[] binCookie, ReplicationCursorCollection replInfo)
        {
            SyncCookieRun ret = SerializeCookieRun(binCookie, replInfo);

            if (ret != null)
            {
                CookieRuns.Add(ret.CookieName, ret);
            }

            return(ret);
        }
Exemple #2
0
        private SyncCookieRun SerializeCookieRun(byte[] binCookie, ReplicationCursorCollection replInfo)
        {
            SyncCookieRun ret = null;

            string crname = Guid.NewGuid().ToString();

            string crpath = Path.Combine(RunPath, crname);

            Directory.CreateDirectory(crpath);

            ret = new SyncCookieRun(crname, crpath, binCookie, replInfo);

            CookieRuns.Add(crname, ret);

            return(ret);
        }