15 instantiations of CookiePolicyOptions
Microsoft.AspNetCore.CookiePolicy.Test (15)
CookieConsentTests.cs (1)
694
var options = new
CookiePolicyOptions
();
CookiePolicyTests.cs (14)
52
new
CookiePolicyOptions
72
new
CookiePolicyOptions
92
new
CookiePolicyOptions
121
new
CookiePolicyOptions
141
new
CookiePolicyOptions
161
new
CookiePolicyOptions
182
new
CookiePolicyOptions
203
new
CookiePolicyOptions
224
new
CookiePolicyOptions
251
app.UseCookiePolicy(new
CookiePolicyOptions
290
app.UseCookiePolicy(new
CookiePolicyOptions
332
app.UseCookiePolicy(new
CookiePolicyOptions
366
app.UseCookiePolicy(new
CookiePolicyOptions
417
app.UseCookiePolicy(new
CookiePolicyOptions
26 references to CookiePolicyOptions
BasicWebSite (1)
StartupWithCookieTempDataProviderAndCookieConsent.cs (1)
13
services.Configure<
CookiePolicyOptions
>(o =>
CookiePolicySample (1)
Startup.cs (1)
17
services.Configure<
CookiePolicyOptions
>(options =>
Identity.DefaultUI.WebSite (3)
NoIdentityStartup.cs (1)
21
services.Configure<
CookiePolicyOptions
>(options =>
PocoUserStartup.cs (1)
18
services.Configure<
CookiePolicyOptions
>(options =>
StartupBase.cs (1)
27
services.Configure<
CookiePolicyOptions
>(options =>
Microsoft.AspNetCore.CookiePolicy (17)
AppendCookieContext.cs (1)
10
/// Context for <see cref="
CookiePolicyOptions
.OnAppendCookie"/> that allows changes to the cookie prior to being appended.
CookiePolicyAppBuilderExtensions.cs (2)
30
/// <param name="options">A <see cref="
CookiePolicyOptions
"/> that specifies options for the handler.</param>
32
public static IApplicationBuilder UseCookiePolicy(this IApplicationBuilder app,
CookiePolicyOptions
options)
CookiePolicyMiddleware.cs (6)
33
/// <param name="options">Accessor to <see cref="
CookiePolicyOptions
"/>.</param>
35
public CookiePolicyMiddleware(RequestDelegate next, IOptions<
CookiePolicyOptions
> options, ILoggerFactory factory)
46
/// <param name="options">Accessor to <see cref="
CookiePolicyOptions
"/>.</param>
47
public CookiePolicyMiddleware(RequestDelegate next, IOptions<
CookiePolicyOptions
> options)
55
/// Gets or sets the <see cref="
CookiePolicyOptions
"/>.
57
public
CookiePolicyOptions
Options { get; set; }
CookiePolicyServiceCollectionExtensions.cs (5)
17
/// <param name="configureOptions">A delegate to configure the <see cref="
CookiePolicyOptions
"/>.</param>
19
public static IServiceCollection AddCookiePolicy(this IServiceCollection services, Action<
CookiePolicyOptions
> configureOptions)
31
/// <param name="configureOptions">A delegate to configure the <see cref="
CookiePolicyOptions
"/>.</param>
33
public static IServiceCollection AddCookiePolicy<TService>(this IServiceCollection services, Action<
CookiePolicyOptions
, TService> configureOptions) where TService : class
38
services.AddOptions<
CookiePolicyOptions
>().Configure(configureOptions);
DeleteCookieContext.cs (1)
10
/// Context for <see cref="
CookiePolicyOptions
.OnDeleteCookie"/> that allows changes to the cookie prior to being deleted.
ResponseCookiesWrapper.cs (2)
19
public ResponseCookiesWrapper(HttpContext context,
CookiePolicyOptions
options, IResponseCookiesFeature feature, ILogger logger)
33
private
CookiePolicyOptions
Options { get; }
Microsoft.AspNetCore.CookiePolicy.Test (3)
CookieConsentTests.cs (2)
694
var
options = new CookiePolicyOptions();
702
private async Task<HttpContext> RunTestAsync(Action<
CookiePolicyOptions
> configureOptions, Action<HttpContext> configureRequest, RequestDelegate handleRequest)
CookiePolicyTests.cs (1)
523
CookiePolicyOptions
cookiePolicy,
OpenIdConnectSample (1)
Startup.cs (1)
86
services.Configure<
CookiePolicyOptions
>(options =>