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. 23return app.UseMiddleware<SessionMiddleware>(); 27/// Adds the <see cref="SessionMiddleware"/> to automatically enable session state for the application. 37return app.UseMiddleware<SessionMiddleware>(Options.Create(options));
Microsoft.AspNetCore.Session.Tests (14)
SessionTests.cs (14)
836return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 841return beginScopeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 884var sessionMiddlewareLogMessage = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).Single(); 896return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 901return beginScopeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 950var sessionMiddlewareLogs = sink.Writes.Where(message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)).ToList(); 962return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 967return beginScopeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 1017Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)); 1026return writeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 1031return beginScopeContext.LoggerName.Equals(typeof(SessionMiddleware).FullName) 1081Assert.DoesNotContain(sink.Writes, message => message.LoggerName.Equals(typeof(SessionMiddleware).FullName, StringComparison.Ordinal)); 1088TestSink.EnableWithTypeName<SessionMiddleware>, 1089TestSink.EnableWithTypeName<SessionMiddleware>);