9 writes to OnAppendCookie
CookiePolicySample (1)
Startup.cs (1)
21options.OnAppendCookie = context => { };
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieConsentTests.cs (4)
77options.OnAppendCookie = context => 122options.OnAppendCookie = context => 240options.OnAppendCookie = context => 598options.OnAppendCookie = context =>
CookiePolicyTests.cs (3)
253OnAppendCookie = ctx => ctx.CookieName = ctx.CookieValue = "Hao" 370OnAppendCookie = c => c.CookieOptions.Extensions.Add("extension") 421OnAppendCookie = c => c.CookieOptions.Extensions.Add("ext")
OpenIdConnectSample (1)
Startup.cs (1)
89options.OnAppendCookie = cookieContext => CheckSameSite(cookieContext.Context, cookieContext.CookieOptions);
4 references to OnAppendCookie
Microsoft.AspNetCore.CookiePolicy (4)
AppendCookieContext.cs (1)
10/// Context for <see cref="CookiePolicyOptions.OnAppendCookie"/> that allows changes to the cookie prior to being appended.
ResponseCookiesWrapper.cs (3)
114if (CheckPolicyRequired() || Options.OnAppendCookie != null) 166if (Options.OnAppendCookie != null) 174Options.OnAppendCookie(context);