5 implementations of Append
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTokenStoreTest.cs (1)
533public void Append(string key, string value, CookieOptions options)
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
124public void Append(string key, string value, CookieOptions options)
Microsoft.AspNetCore.CookiePolicy.Test (1)
CookiePolicyTests.cs (1)
486public void Append(string key, string value, CookieOptions options)
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
44public void Append(string key, string value, CookieOptions options)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CookieTempDataProviderTest.cs (1)
353public void Append(string key, string value, CookieOptions options)
38 references to Append
CookiePolicySample (1)
Startup.cs (1)
57context.Response.Cookies.Append("EssentialCookie", "2",
HttpAbstractions.SampleApp (1)
Program.cs (1)
43response.Cookies.Append("Cookie1", "value1", new CookieOptions() { Expires = DateTimeOffset.UtcNow + TimeSpan.FromDays(1) });
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
99httpContext.Response.Cookies.Append(_options.Cookie.Name!, token, options);
Microsoft.AspNetCore.Authentication (1)
RemoteAuthenticationHandler.cs (1)
240Response.Cookies.Append(cookieName, CorrelationMarker, cookieOptions);
Microsoft.AspNetCore.Authentication.Cookies (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
155responseCookies.Append(key, string.Empty, options); 174responseCookies.Append(key, value, options);
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1164Response.Cookies.Append(
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterHandler.cs (1)
177Response.Cookies.Append(Options.StateCookie.Name!, Options.StateDataFormat.Protect(requestToken), cookieOptions);
Microsoft.AspNetCore.CookiePolicy (1)
ResponseCookiesWrapper.cs (1)
130Cookies.Append(key, value, options);
Microsoft.AspNetCore.CookiePolicy.Test (21)
CookieConsentTests.cs (4)
65context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = false }); 91context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = false }); 110context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = true }); 140context.Response.Cookies.Append("Test", "Value", new CookieOptions() { IsEssential = true });
CookiePolicyTests.cs (15)
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 }); 341Assert.Throws<NotImplementedException>(() => context.Response.Cookies.Append("A", "A", new CookieOptions()));
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
155responseCookies.Append(key, string.Empty, options); 174responseCookies.Append(key, value, options);
Microsoft.AspNetCore.Http.Features (1)
IResponseCookies.cs (1)
35Append(keyValuePair.Key, keyValuePair.Value, options);
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (2)
155responseCookies.Append(key, string.Empty, options); 174responseCookies.Append(key, value, options);
Microsoft.AspNetCore.Rewrite (1)
UrlActions\ChangeCookieAction.cs (1)
38context.HttpContext.Response.Cookies.Append(Name, Value ?? string.Empty, options);
Microsoft.AspNetCore.Session (1)
SessionMiddleware.cs (1)
144response.Cookies.Append(_options.Cookie.Name!, _cookieValue, cookieOptions);
SignalR.Client.FunctionalTestApp (3)
Startup.cs (3)
193context.Response.Cookies.Append("testCookie", "testValue", cookieOptions); 194context.Response.Cookies.Append("testCookie2", "testValue2", cookieOptions); 197context.Response.Cookies.Append("expiredCookie", "doesntmatter", expiredCookieOptions);