C-DEngine 5.105

HttpListener..::..AuthenticationSchemeSelector Property

Gets or sets the delegate called to select the scheme used to authenticate the clients.

Namespace:  WebSocketSharp.Net
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public Func<HttpListenerRequest, AuthenticationSchemes> AuthenticationSchemeSelector { get; set; }
Public Property AuthenticationSchemeSelector As Func(Of HttpListenerRequest, AuthenticationSchemes)
	Get
	Set
public:
property Func<HttpListenerRequest^, AuthenticationSchemes^>^ AuthenticationSchemeSelector {
	Func<HttpListenerRequest^, AuthenticationSchemes^>^ get ();
	void set (Func<HttpListenerRequest^, AuthenticationSchemes^>^ value);
}

Field Value

A Func<HttpListenerRequest, AuthenticationSchemes> delegate that references the method used to select an authentication scheme. The default value is nullNothingnullptra null reference (Nothing in Visual Basic).

Exceptions


ExceptionCondition
ObjectDisposedException This listener has been closed.

Remarks


If you set this property, the listener uses the authentication scheme selected by the delegate for each request. Or if you don't set, the listener uses the value of the AuthenticationSchemes property as the authentication scheme for all requests.