Example #1
0
        internal static BackSyncCookieWriter Create(Type cookieType)
        {
            int num = 0;

            BackSyncCookieAttribute[] cookieAttributeDefinitions = null;
            ExTraceGlobals.BackSyncTracer.TraceDebug <string>((long)SyncConfiguration.TraceId, "Cookie Type {0}", cookieType.Name);
            BackSyncCookieAttribute.CreateBackSyncCookieAttributeDefinitions(null, cookieType, out num, out cookieAttributeDefinitions);
            return(new BackSyncCookieWriter(cookieAttributeDefinitions));
        }
        // Token: 0x060061F2 RID: 25074 RVA: 0x0014F300 File Offset: 0x0014D500
        internal static BackSyncCookieReader Create(byte[] binaryCookie, Type cookieType)
        {
            int attributeCount = 0;

            BackSyncCookieAttribute[] cookieAttributeDefinitions = null;
            ExTraceGlobals.BackSyncTracer.TraceDebug <string>((long)SyncConfiguration.TraceId, "Cookie Type {0}", cookieType.Name);
            BackSyncCookieAttribute.CreateBackSyncCookieAttributeDefinitions(binaryCookie, cookieType, out attributeCount, out cookieAttributeDefinitions);
            return(new BackSyncCookieReader(attributeCount, cookieAttributeDefinitions, binaryCookie));
        }