Click or drag to resize

WebSocketBehaviorCookiesValidator Property

Gets or sets the delegate used to validate the HTTP cookies included in a WebSocket handshake request to the service.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public Func<CookieCollection, CookieCollection, bool> CookiesValidator { get; set; }

Property Value

Type: FuncCookieCollection, CookieCollection, Boolean

A Func<CookieCollection, CookieCollection, bool> delegate or if not needed.

The delegate invokes the method called when the WebSocket instance for a session validates the handshake request.

1st CookieCollection parameter passed to the method contains the cookies to validate if present.

2nd CookieCollection parameter passed to the method receives the cookies to send to the client.

The method must return true if the cookies are valid.

The default value is .

See Also