[Modify] Edit it

This commit is contained in:
sta 2016-11-05 17:33:58 +09:00
parent c8a2bab27a
commit 784ff0d225

View File

@ -862,29 +862,22 @@ namespace WebSocketSharp.Server
#region Public Methods #region Public Methods
/// <summary> /// <summary>
/// Adds a WebSocket service with the specified behavior, <paramref name="path"/>, /// Adds a WebSocket service with the specified behavior,
/// and <paramref name="initializer"/>. /// <paramref name="path"/>, and <paramref name="initializer"/>.
/// </summary> /// </summary>
/// <remarks>
/// <para>
/// This method converts <paramref name="path"/> to URL-decoded string,
/// and removes <c>'/'</c> from tail end of <paramref name="path"/>.
/// </para>
/// <para>
/// <paramref name="initializer"/> returns an initialized specified typed
/// <see cref="WebSocketBehavior"/> instance.
/// </para>
/// </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>
/// <param name="initializer"> /// <param name="initializer">
/// A <c>Func&lt;T&gt;</c> delegate that references the method used to initialize /// A <c>Func&lt;TBehavior&gt;</c> delegate that invokes
/// a new specified typed <see cref="WebSocketBehavior"/> instance (a new /// the method used to create a new session instance for
/// <see cref="IWebSocketSession"/> instance). /// the service. The method must create a new instance of
/// the specified behavior class and return it.
/// </param> /// </param>
/// <typeparam name="TBehavior"> /// <typeparam name="TBehavior">
/// The type of the behavior of the service to add. The TBehavior must inherit /// The type of the behavior for the service. It must inherit
/// the <see cref="WebSocketBehavior"/> class. /// the <see cref="WebSocketBehavior"/> class.
/// </typeparam> /// </typeparam>
public void AddWebSocketService<TBehavior> ( public void AddWebSocketService<TBehavior> (