WebSocketBehavior..::..CookiesValidator Property
Gets or sets the delegate called to validate the HTTP cookies included in
a connection request to the WebSocket service.
Namespace:
WebSocketSharp.ServerAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public Func<CookieCollection, CookieCollection, bool> CookiesValidator { get; set; }
Public Property CookiesValidator As Func(Of CookieCollection, CookieCollection, Boolean) Get Set
public: property Func<CookieCollection^, CookieCollection^, bool^>^ CookiesValidator { Func<CookieCollection^, CookieCollection^, bool^>^ get (); void set (Func<CookieCollection^, CookieCollection^, bool^>^ value); }
Field Value
A Func<CookieCollection, CookieCollection, bool> delegate that references the method(s) used to validate the cookies. 1st CookieCollection passed to this delegate contains the cookies to validate if any. 2nd CookieCollection passed to this delegate receives the cookies to send to the client.
This delegate should return true if the cookies are valid.
The default value is nullNothingnullptra null reference (Nothing in Visual Basic), and it does nothing to validate.