2 writes to Cookie
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
CookieTempDataProviderTest.cs (2)
35
Cookie
= { Name = expectedCookieName }
238
Cookie
=
14 references to Cookie
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
50
.AddCookieTempDataProvider(o => o.
Cookie
.IsEssential = true);
Microsoft.AspNetCore.Mvc.ViewFeatures (12)
CookieTempDataProvider.cs (12)
60
if (context.Request.Cookies.ContainsKey(_options.
Cookie
.Name))
70
var encodedValue = _chunkingCookieManager.GetRequestCookie(context, _options.
Cookie
.Name);
76
Log.TempDataCookieLoadSuccess(_logger, _options.
Cookie
.Name);
82
Log.TempDataCookieLoadFailure(_logger, _options.
Cookie
.Name, ex);
88
_chunkingCookieManager.DeleteCookie(context, _options.
Cookie
.Name, _options.
Cookie
.Build(context));
93
Log.TempDataCookieNotFound(_logger, _options.
Cookie
.Name);
106
var cookieOptions = _options.
Cookie
.Build(context);
115
_chunkingCookieManager.AppendResponseCookie(context, _options.
Cookie
.Name, encodedValue, cookieOptions);
119
_chunkingCookieManager.DeleteCookie(context, _options.
Cookie
.Name, cookieOptions);
125
if (!string.IsNullOrEmpty(_options.
Cookie
.Path))
127
cookieOptions.Path = _options.
Cookie
.Path;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CookieTempDataProviderTest.cs (1)
157
options.
Cookie
.SecurePolicy = cookieSecurePolicy;