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); }
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); }