[Modify] Edit it
This commit is contained in:
parent
286c509f29
commit
c4f13a5c50
@ -1124,20 +1124,53 @@ 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>
|
/// <remarks>
|
||||||
/// This method converts <paramref name="path"/> to URL-decoded string,
|
/// <paramref name="path"/> is converted to a URL-decoded string and
|
||||||
/// and removes <c>'/'</c> from tail end of <paramref name="path"/>.
|
/// '/' is trimmed from the end of the converted string if any.
|
||||||
/// </remarks>
|
/// </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 to add.
|
||||||
/// </param>
|
/// </param>
|
||||||
/// <typeparam name="TBehaviorWithNew">
|
/// <typeparam name="TBehaviorWithNew">
|
||||||
/// The type of the behavior of the service to add. The TBehaviorWithNew must inherit
|
/// <para>
|
||||||
/// the <see cref="WebSocketBehavior"/> class, and must have a public parameterless
|
/// The type of the behavior for the service.
|
||||||
/// constructor.
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// It must inherit the <see cref="WebSocketBehavior"/> class and
|
||||||
|
/// must have a public parameterless constructor.
|
||||||
|
/// </para>
|
||||||
/// </typeparam>
|
/// </typeparam>
|
||||||
|
/// <exception cref="ArgumentNullException">
|
||||||
|
/// <paramref name="path"/> is <see langword="null"/>.
|
||||||
|
/// </exception>
|
||||||
|
/// <exception cref="ArgumentException">
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="path"/> is an empty string.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="path"/> is not an absolute path.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="path"/> includes either or both
|
||||||
|
/// query and fragment components.
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// -or-
|
||||||
|
/// </para>
|
||||||
|
/// <para>
|
||||||
|
/// <paramref name="path"/> is already in use.
|
||||||
|
/// </para>
|
||||||
|
/// </exception>
|
||||||
public void AddWebSocketService<TBehaviorWithNew> (string path)
|
public void AddWebSocketService<TBehaviorWithNew> (string path)
|
||||||
where TBehaviorWithNew : WebSocketBehavior, new ()
|
where TBehaviorWithNew : WebSocketBehavior, new ()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user