3 instantiations of SessionOptions
Microsoft.AspNetCore.Session.Tests (3)
SessionTests.cs (3)
119
app.UseSession(new
SessionOptions
750
app.UseSession(new
SessionOptions
()
912
app.UseSession(new
SessionOptions
()
8 references to SessionOptions
Microsoft.AspNetCore.Session (8)
SessionMiddleware.cs (4)
22
private readonly
SessionOptions
_options;
40
IOptions<
SessionOptions
> options)
118
private readonly
SessionOptions
_options;
121
public SessionEstablisher(HttpContext context, string cookieValue,
SessionOptions
options)
SessionMiddlewareExtensions.cs (2)
30
/// <param name="options">The <see cref="
SessionOptions
"/>.</param>
32
public static IApplicationBuilder UseSession(this IApplicationBuilder app,
SessionOptions
options)
SessionOptions.cs (1)
62
set => throw new InvalidOperationException(nameof(Expiration) + " cannot be set for the cookie defined by " + nameof(
SessionOptions
));
SessionServiceCollectionExtensions.cs (1)
38
public static IServiceCollection AddSession(this IServiceCollection services, Action<
SessionOptions
> configure)