[Modify] Edit it

This commit is contained in:
sta 2016-11-04 16:14:57 +09:00
parent 0c29a44664
commit 5209c490e3

View File

@ -902,19 +902,18 @@ namespace WebSocketSharp.Server
} }
/// <summary> /// <summary>
/// Adds a WebSocket service with the specified behavior and <paramref name="path"/>. /// Adds a WebSocket service with the specified behavior and
/// <paramref name="path"/>.
/// </summary> /// </summary>
/// <remarks>
/// This method converts <paramref name="path"/> to URL-decoded string,
/// and removes <c>'/'</c> from tail end of <paramref name="path"/>.
/// </remarks>
/// <param name="path"> /// <param name="path">
/// A <see cref="string"/> that represents the absolute path to the service to add. /// A <see cref="string"/> that represents an absolute path to
/// the service. It will be converted to a URL-decoded string,
/// and will be removed <c>'/'</c> from tail end if any.
/// </param> /// </param>
/// <typeparam name="TBehaviorWithNew"> /// <typeparam name="TBehaviorWithNew">
/// The type of the behavior of the service to add. The TBehaviorWithNew must inherit /// The type of the behavior for the service. It must inherit
/// the <see cref="WebSocketBehavior"/> class, and must have a public parameterless /// the <see cref="WebSocketBehavior"/> class, and must have
/// constructor. /// a public parameterless constructor.
/// </typeparam> /// </typeparam>
public void AddWebSocketService<TBehaviorWithNew> (string path) public void AddWebSocketService<TBehaviorWithNew> (string path)
where TBehaviorWithNew : WebSocketBehavior, new () where TBehaviorWithNew : WebSocketBehavior, new ()