[Modify] Edit it

This commit is contained in:
sta 2018-06-13 19:45:18 +09:00
parent af4319b66c
commit 4218c134e6

View File

@ -208,27 +208,28 @@ namespace WebSocketSharp.Server
} }
/// <summary> /// <summary>
/// Gets or sets the delegate called to validate the Origin header included in /// Gets or sets the delegate used to validate the Origin header included
/// a handshake request to the WebSocket service. /// in a handshake request to the WebSocket service.
/// </summary> /// </summary>
/// <remarks>
/// This delegate is called when the <see cref="WebSocket"/> used in a session validates
/// the handshake request.
/// </remarks>
/// <value> /// <value>
/// <para> /// <para>
/// A <c>Func&lt;string, bool&gt;</c> delegate that references the method(s) used to /// A <c>Func&lt;string, bool&gt;</c> delegate or <see langword="null"/>
/// validate the origin header. /// if not needed.
/// </para> /// </para>
/// <para> /// <para>
/// <see cref="string"/> parameter passed to this delegate represents the value of /// The delegate invokes the method called when the WebSocket instance
/// the origin header to validate if any. /// for a session validates the handshake request.
/// </para> /// </para>
/// <para> /// <para>
/// This delegate should return <c>true</c> if the origin header is valid. /// The <see cref="string"/> parameter passed to the method is the value
/// of the Origin header or <see langword="null"/> if the header is not
/// present.
/// </para> /// </para>
/// <para> /// <para>
/// The default value is <see langword="null"/>, and it does nothing to validate. /// The method must return <c>true</c> if the header value is valid.
/// </para>
/// <para>
/// The default value is <see langword="null"/>.
/// </para> /// </para>
/// </value> /// </value>
public Func<string, bool> OriginValidator { public Func<string, bool> OriginValidator {