63 instantiations of CookieOptions
CookiePolicySample (1)
HttpAbstractions.SampleApp (1)
Microsoft.AspNetCore.Authentication.Cookies (2)
Microsoft.AspNetCore.CookiePolicy (2)
Microsoft.AspNetCore.CookiePolicy.Test (35)
CookieChunkingTests.cs (10)
17new ChunkingCookieManager() { ChunkSize = null }.AppendResponseCookie(context, "TestCookie", testString, new CookieOptions());
28var options = new CookieOptions
52new ChunkingCookieManager() { ChunkSize = 44 }.AppendResponseCookie(context, "TestCookie", testString, new CookieOptions());
71new CookieOptions() { Extensions = { "simple", "key=value" } });
99new ChunkingCookieManager() { ChunkSize = 31 }.AppendResponseCookie(context, "TestCookie", "ShortValue", new CookieOptions());
130new ChunkingCookieManager() { ChunkSize = 31 }.AppendResponseCookie(context, "TestCookie", "abcdefghijklmnopqr", new CookieOptions());
213new ChunkingCookieManager().DeleteCookie(context, "TestCookie", new CookieOptions() { Domain = "foo.com", Secure = true, Extensions = { "extension" } });
235new ChunkingCookieManager().DeleteCookie(context, "TestCookie", new CookieOptions() { Domain = "foo.com", Secure = true });
253new ChunkingCookieManager().DeleteCookie(context, "TestCookie", new CookieOptions() { Domain = "foo.com", Secure = true });
282var cookieOptions = new CookieOptions()
CookiePolicyTests.cs (19)
24context.Response.Cookies.Append("B", "B", new CookieOptions { Secure = false });
25context.Response.Cookies.Append("C", "C", new CookieOptions());
26context.Response.Cookies.Append("D", "D", new CookieOptions { Secure = true });
32context.Response.Cookies.Append("B", "B", new CookieOptions { HttpOnly = false });
33context.Response.Cookies.Append("C", "C", new CookieOptions());
34context.Response.Cookies.Append("D", "D", new CookieOptions { HttpOnly = true });
40context.Response.Cookies.Append("B", "B", new CookieOptions());
41context.Response.Cookies.Append("C", "C", new CookieOptions { SameSite = Http.SameSiteMode.None });
42context.Response.Cookies.Append("D", "D", new CookieOptions { SameSite = Http.SameSiteMode.Lax });
43context.Response.Cookies.Append("E", "E", new CookieOptions { SameSite = Http.SameSiteMode.Strict });
44context.Response.Cookies.Append("F", "F", new CookieOptions { SameSite = (Http.SameSiteMode)(-1) });
258context.Response.Cookies.Append("B", "B", new CookieOptions { Secure = false });
259context.Response.Cookies.Append("C", "C", new CookieOptions() { SameSite = Http.SameSiteMode.Strict });
260context.Response.Cookies.Append("D", "D", new CookieOptions { Secure = true });
297context.Response.Cookies.Delete("B", new CookieOptions { Secure = false });
298context.Response.Cookies.Delete("C", new CookieOptions());
299context.Response.Cookies.Delete("D", new CookieOptions { Secure = true });
339Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Delete("A", new CookieOptions()));
341Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Append("A", "A", new CookieOptions()));
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Tests (10)
ResponseCookiesTest.cs (8)
41cookies.Append(testCookie, "value", new CookieOptions()
65cookies.Append(testCookie, "value", new CookieOptions()
86cookies.Delete(testCookie, new CookieOptions()
134responseCookies.Delete(cookie.Key, new CookieOptions() { Domain = cookie.Domain, Path = cookie.Path });
164responseCookies.Append(cookie.Key, cookie.Key, new CookieOptions() { Domain = cookie.Domain, Path = cookie.Path });
165responseCookies.Delete(cookie.Key, new CookieOptions() { Domain = cookie.Domain, Path = cookie.Path });
183var options = new CookieOptions
231var cookieOptions = new CookieOptions();
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
SignalR.Client.FunctionalTestApp (2)
113 references to CookieOptions
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (3)
Microsoft.AspNetCore.Authentication (8)
Microsoft.AspNetCore.Authentication.Cookies (15)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
145public void AppendResponseCookie(HttpContext context, string key, string? value, CookieOptions options)
224public void DeleteCookie(HttpContext context, string key, CookieOptions options)
312private static void DeleteChunks(HttpContext context, IRequestCookieCollection requestCookies, CookieOptions options, string key, int startChunk, int endChunk)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.CookiePolicy (20)
Microsoft.AspNetCore.CookiePolicy.Test (7)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
145public void AppendResponseCookie(HttpContext context, string key, string? value, CookieOptions options)
224public void DeleteCookie(HttpContext context, string key, CookieOptions options)
312private static void DeleteChunks(HttpContext context, IRequestCookieCollection requestCookies, CookieOptions options, string key, int startChunk, int endChunk)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions (9)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Features (13)
Microsoft.AspNetCore.Http.Tests (5)
Microsoft.AspNetCore.Mvc.Core (3)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (3)
145public void AppendResponseCookie(HttpContext context, string key, string? value, CookieOptions options)
224public void DeleteCookie(HttpContext context, string key, CookieOptions options)
312private static void DeleteChunks(HttpContext context, IRequestCookieCollection requestCookies, CookieOptions options, string key, int startChunk, int endChunk)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Session (1)
OpenIdConnectSample (1)
SignalR.Client.FunctionalTestApp (2)