diff --git a/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs b/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs
index 403271f09a..4b2ce7134e 100644
--- a/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs
+++ b/src/Middleware/WebSockets/src/WebSocketMiddlewareExtensions.cs
@@ -7,8 +7,20 @@ using Microsoft.Extensions.Options;
namespace Microsoft.AspNetCore.Builder
{
+ ///
+ /// extension methods to add and configure .
+ ///
public static class WebSocketMiddlewareExtensions
{
+ ///
+ /// Adds the to the request pipeline.
+ ///
+ ///
+ /// The to configure.
+ ///
+ ///
+ /// The .
+ ///
public static IApplicationBuilder UseWebSockets(this IApplicationBuilder app)
{
if (app == null)
@@ -19,6 +31,18 @@ namespace Microsoft.AspNetCore.Builder
return app.UseMiddleware();
}
+ ///
+ /// Adds the to the request pipeline.
+ ///
+ ///
+ /// The to configure.
+ ///
+ ///
+ /// The to be used for the .
+ ///
+ ///
+ /// The .
+ ///
public static IApplicationBuilder UseWebSockets(this IApplicationBuilder app, WebSocketOptions options)
{
if (app == null)
@@ -33,4 +57,4 @@ namespace Microsoft.AspNetCore.Builder
return app.UseMiddleware(Options.Create(options));
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Servers/Kestrel/Transport.Sockets/src/WebHostBuilderSocketExtensions.cs b/src/Servers/Kestrel/Transport.Sockets/src/WebHostBuilderSocketExtensions.cs
index d073f91aa4..8ee49f198d 100644
--- a/src/Servers/Kestrel/Transport.Sockets/src/WebHostBuilderSocketExtensions.cs
+++ b/src/Servers/Kestrel/Transport.Sockets/src/WebHostBuilderSocketExtensions.cs
@@ -8,6 +8,9 @@ using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.AspNetCore.Hosting
{
+ ///
+ /// extension methods to configure the Socket transport to be used by Kestrel.
+ ///
public static class WebHostBuilderSocketExtensions
{
///