예제 #1
0
        private static CircularJwtHeaderDocumentCache[] CreateCircularCacheArray(int count, int size = 64)
        {
            var caches = new CircularJwtHeaderDocumentCache[count];

            for (int i = 0; i < count; i++)
            {
                caches[i] = CreateCircularCache(i, size);
            }

            return(caches);
        }
예제 #2
0
        private static CircularJwtHeaderDocumentCache CreateCircularCache(int count, int size = 64)
        {
            CircularJwtHeaderDocumentCache cache = new CircularJwtHeaderDocumentCache();
            var data = CreateData(count, size);

            for (int i = 0; i < data.Length; i++)
            {
                cache.AddHeader(data[i], JwtHeaderDocument.Empty);
            }

            return(cache);
        }