[Modify] Add it

This commit is contained in:
sta 2020-09-21 21:26:02 +09:00
parent 1bb32309f2
commit 3a5fc43dbc

View File

@ -74,6 +74,27 @@ namespace WebSocketSharp.Net
parse (uriPrefix);
}
/// <summary>
/// Initializes a new instance of the <see cref="HttpListenerPrefix"/> class
/// with the specified URI prefix and HTTP listener.
/// </summary>
/// <remarks>
/// This constructor must be called after calling the CheckPrefix method.
/// </remarks>
/// <param name="uriPrefix">
/// A <see cref="string"/> that specifies the URI prefix.
/// </param>
/// <param name="listener">
/// A <see cref="HttpListener"/> that specifies the HTTP listener.
/// </param>
internal HttpListenerPrefix (string uriPrefix, HttpListener listener)
{
_original = uriPrefix;
_listener = listener;
parse (uriPrefix);
}
#endregion
#region Public Properties