24 references to SessionMiddleware
Microsoft.AspNetCore.Session (10)
DistributedSession.cs (1)
52
/// <see cref="
SessionMiddleware
"/> provides a callback that returns <see langword="false"/> if the session was not established
ISessionStore.cs (1)
25
/// <see cref="
SessionMiddleware
"/> provides a callback that returns <see langword="false"/> if the session was not established
SessionMiddleware.cs (3)
28
/// Creates a new <see cref="
SessionMiddleware
"/>.
49
_logger = loggerFactory.CreateLogger<
SessionMiddleware
>();
50
_dataProtector = dataProtectionProvider.CreateProtector(nameof(
SessionMiddleware
));
SessionMiddlewareExtensions.cs (5)
10
/// Extension methods for adding the <see cref="
SessionMiddleware
"/> to an application.
15
/// Adds the <see cref="
SessionMiddleware
"/> to automatically enable session state for the application.
23
return app.UseMiddleware<
SessionMiddleware
>();
27
/// Adds the <see cref="
SessionMiddleware
"/> to automatically enable session state for the application.
37
return app.UseMiddleware<
SessionMiddleware
>(Options.Create(options));
Microsoft.AspNetCore.Session.Tests (14)
SessionTests.cs (14)
836
return writeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
841
return beginScopeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
884
var sessionMiddlewareLogMessage = sink.Writes.Where(message => message.LoggerName.Equals(typeof(
SessionMiddleware
).FullName, StringComparison.Ordinal)).Single();
896
return writeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
901
return beginScopeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
950
var sessionMiddlewareLogs = sink.Writes.Where(message => message.LoggerName.Equals(typeof(
SessionMiddleware
).FullName, StringComparison.Ordinal)).ToList();
962
return writeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
967
return beginScopeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
1017
Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(
SessionMiddleware
).FullName, StringComparison.Ordinal));
1026
return writeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
1031
return beginScopeContext.LoggerName.Equals(typeof(
SessionMiddleware
).FullName)
1081
Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(
SessionMiddleware
).FullName, StringComparison.Ordinal));
1088
TestSink.EnableWithTypeName<
SessionMiddleware
>,
1089
TestSink.EnableWithTypeName<
SessionMiddleware
>);