diff --git a/src/Microsoft.AspNet.Session/SessionMiddleware.cs b/src/Microsoft.AspNet.Session/SessionMiddleware.cs
index 57c1d8f5b9..da20fb3cbb 100644
--- a/src/Microsoft.AspNet.Session/SessionMiddleware.cs
+++ b/src/Microsoft.AspNet.Session/SessionMiddleware.cs
@@ -15,6 +15,9 @@ using Microsoft.Framework.OptionsModel;
namespace Microsoft.AspNet.Session
{
+ ///
+ /// Enables the session state for the application.
+ ///
public class SessionMiddleware
{
private static readonly RandomNumberGenerator CryptoRandom = RandomNumberGenerator.Create();
@@ -25,6 +28,13 @@ namespace Microsoft.AspNet.Session
private readonly ILogger _logger;
private readonly ISessionStore _sessionStore;
+ ///
+ /// Creates a new .
+ ///
+ /// The representing the next middleware in the pipeline.
+ /// The representing the factory that used to create logger instances.
+ /// The representing the session store.
+ /// The session configuration options.
public SessionMiddleware(
[NotNull] RequestDelegate next,
[NotNull] ILoggerFactory loggerFactory,
@@ -38,6 +48,11 @@ namespace Microsoft.AspNet.Session
_sessionStore.Connect();
}
+ ///
+ /// Invokes the logic of the middleware.
+ ///
+ /// The .
+ /// A that completes when the middleware has completed processing.
public async Task Invoke(HttpContext context)
{
var isNewSessionKey = false;
diff --git a/src/Microsoft.AspNet.Session/SessionMiddlewareExtensions.cs b/src/Microsoft.AspNet.Session/SessionMiddlewareExtensions.cs
index 89273bc2fc..d4a2e322f9 100644
--- a/src/Microsoft.AspNet.Session/SessionMiddlewareExtensions.cs
+++ b/src/Microsoft.AspNet.Session/SessionMiddlewareExtensions.cs
@@ -6,8 +6,16 @@ using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Builder
{
+ ///
+ /// Extension methods for adding the to an application.
+ ///
public static class SessionMiddlewareExtensions
{
+ ///
+ /// Adds the to automatically enable session state for the application.
+ ///
+ /// The .
+ /// The .
public static IApplicationBuilder UseSession([NotNull] this IApplicationBuilder app)
{
return app.UseMiddleware();
diff --git a/src/Microsoft.AspNet.Session/SessionServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Session/SessionServiceCollectionExtensions.cs
index 6e9e57d274..04f73dbd41 100644
--- a/src/Microsoft.AspNet.Session/SessionServiceCollectionExtensions.cs
+++ b/src/Microsoft.AspNet.Session/SessionServiceCollectionExtensions.cs
@@ -8,12 +8,12 @@ using Microsoft.Framework.Internal;
namespace Microsoft.Framework.DependencyInjection
{
///
- /// Extension methods for adding session servics to the DI container.
+ /// Extension methods for adding session services to the DI container.
///
public static class SessionServiceCollectionExtensions
{
///
- /// Adds services required for application session.
+ /// Adds services required for application session state.
///
/// The to add the services to.
/// The .