Selects the authentication scheme for an HttpListener instance.
Assembly: System (in System.dll)
type AuthenticationSchemeSelector = delegate of httpRequest:HttpListenerRequest -> AuthenticationSchemes
Delegates of this type are used by HttpListener instances to select an authentication scheme based on the characteristics of a request.
An delegate is passed an HttpListenerRequest object for each incoming request that has not provided authentication information. The method invoked by the delegate uses the HttpListenerRequest object and any other available information to decide which authentication scheme to require. The delegate is specified by using the AuthenticationSchemeSelectorDelegate property.
The following example uses an instance of this type to set the AuthenticationSchemeSelectorDelegate property.
The following example shows the implementation of the method invoked by the delegate in the previous example.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.