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