7 instantiations of CookieRequestCultureProvider
Microsoft.AspNetCore.Localization (1)
RequestLocalizationOptions.cs (1)
25new CookieRequestCultureProvider { Options = this },
Microsoft.AspNetCore.Localization.Tests (6)
CookieRequestCultureProviderTest.cs (5)
41var provider = new CookieRequestCultureProvider 94var provider = new CookieRequestCultureProvider 143var provider = new CookieRequestCultureProvider 194var provider = new CookieRequestCultureProvider 254var provider = new CookieRequestCultureProvider
RequestLocalizationMiddlewareTest.cs (1)
43.AddInitialRequestCultureProvider(new CookieRequestCultureProvider
15 references to CookieRequestCultureProvider
LocalizationSample (2)
Startup.cs (2)
61var cookieValue = '{CookieRequestCultureProvider.DefaultCookieName}=c='+culture.options[culture.selectedIndex].value+'|uic='+uiCulture.options[uiCulture.selectedIndex].value; 67document.cookie='{CookieRequestCultureProvider.DefaultCookieName}=""""';
Microsoft.AspNetCore.Localization (1)
RequestLocalizationOptions.cs (1)
112/// <item><description><see cref="CookieRequestCultureProvider"/></description></item>
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
34request.Headers.Add("Cookie", $"{CookieRequestCultureProvider.DefaultCookieName}={cookieValue}");
LocalizationTest.cs (1)
113request.Headers.Add("Cookie", $"{CookieRequestCultureProvider.DefaultCookieName}={cookieValue}");
Microsoft.AspNetCore.Localization.Tests (8)
CookieRequestCultureProviderTest.cs (8)
41var provider = new CookieRequestCultureProvider 65var value = CookieRequestCultureProvider.MakeCookieValue(requestCulture); 94var provider = new CookieRequestCultureProvider 143var provider = new CookieRequestCultureProvider 194var provider = new CookieRequestCultureProvider 221var expectedMessage = $"{nameof(CookieRequestCultureProvider)} returned the following unsupported cultures '??'."; 254var provider = new CookieRequestCultureProvider 281var expectedMessage = $"{nameof(CookieRequestCultureProvider)} returned the following unsupported UI Cultures '??'.";
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
ViewEngineTests.cs (2)
165new CookieHeaderValue(CookieRequestCultureProvider.DefaultCookieName, cultureCookie).ToString()); 309new CookieHeaderValue(CookieRequestCultureProvider.DefaultCookieName, cultureCookie).ToString());