7 writes to ChunkSize
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieChunkingTests.cs (6)
17new ChunkingCookieManager() { ChunkSize = null }.AppendResponseCookie(context, "TestCookie", testString, new CookieOptions()); 39new ChunkingCookieManager() { ChunkSize = null }.AppendResponseCookie(context, "TestCookie", testString, options); 52new ChunkingCookieManager() { ChunkSize = 44 }.AppendResponseCookie(context, "TestCookie", testString, new CookieOptions()); 70new ChunkingCookieManager() { ChunkSize = 63 }.AppendResponseCookie(context, "TestCookie", testString, 99new ChunkingCookieManager() { ChunkSize = 31 }.AppendResponseCookie(context, "TestCookie", "ShortValue", new CookieOptions()); 130new ChunkingCookieManager() { ChunkSize = 31 }.AppendResponseCookie(context, "TestCookie", "abcdefghijklmnopqr", new CookieOptions());
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
53ChunkSize = DefaultChunkSize;
4 references to ChunkSize
Microsoft.AspNetCore.CookiePolicy.Test (4)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (4)
166if (!ChunkSize.HasValue || ChunkSize.Value > templateLength + value.Length) 176else if (ChunkSize.Value < templateLength + 10) 190var dataSizePerCookie = ChunkSize.Value - templateLength - 3; // Budget 3 chars for the chunkid.