10 writes to MaxAge
Microsoft.AspNetCore.Http.Features (1)
CookieOptions.cs (1)
120MaxAge = MaxAge,
Microsoft.Net.Http.Headers (1)
SetCookieHeaderValue.cs (1)
600result.MaxAge = TimeSpan.FromSeconds(maxAge);
Microsoft.Net.Http.Headers.Tests (8)
SetCookieHeaderValueTest.cs (8)
21MaxAge = TimeSpan.FromDays(1), 37MaxAge = TimeSpan.FromDays(1), 67MaxAge = TimeSpan.FromDays(-1), 73MaxAge = TimeSpan.FromDays(0), 138MaxAge = TimeSpan.FromDays(1), 152MaxAge = TimeSpan.FromDays(1), 241MaxAge = TimeSpan.FromDays(1), 252MaxAge = TimeSpan.FromDays(1),
9 references to MaxAge
Microsoft.Net.Http.Headers (8)
SetCookieHeaderValue.cs (8)
201if (MaxAge.HasValue) 203maxAge = HeaderUtilities.FormatInt64((long)MaxAge.GetValueOrDefault().TotalSeconds); 348if (MaxAge.HasValue) 350AppendSegment(builder, MaxAgeToken, HeaderUtilities.FormatInt64((long)MaxAge.GetValueOrDefault().TotalSeconds)); 736&& MaxAge.Equals(other.MaxAge) 751^ (MaxAge.HasValue ? MaxAge.GetHashCode() : 0)
Microsoft.Net.Http.Headers.Tests (1)
SetCookieHeaderValueTest.cs (1)
513Assert.NotNull(parsedValue!.MaxAge);