9 writes to OnAppendCookie
CookiePolicySample (1)
Startup.cs (1)
21
options.
OnAppendCookie
= context => { };
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieConsentTests.cs (4)
77
options.
OnAppendCookie
= context =>
122
options.
OnAppendCookie
= context =>
240
options.
OnAppendCookie
= context =>
598
options.
OnAppendCookie
= context =>
CookiePolicyTests.cs (3)
253
OnAppendCookie
= ctx => ctx.CookieName = ctx.CookieValue = "Hao"
370
OnAppendCookie
= c => c.CookieOptions.Extensions.Add("extension")
421
OnAppendCookie
= c => c.CookieOptions.Extensions.Add("ext")
OpenIdConnectSample (1)
Startup.cs (1)
89
options.
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)
114
if (CheckPolicyRequired() || Options.
OnAppendCookie
!= null)
166
if (Options.
OnAppendCookie
!= null)
174
Options.
OnAppendCookie
(context);