ServerOptionsSelectionCallback Délégué

Définition

Représente la méthode de rappel asynchrone qui sélectionne les propriétés de session en fonction du nom demandé par le client.

public delegate System::Threading::Tasks::ValueTask<System::Net::Security::SslServerAuthenticationOptions ^> ServerOptionsSelectionCallback(SslStream ^ stream, SslClientHelloInfo clientHelloInfo, System::Object ^ state, CancellationToken cancellationToken);
public delegate System.Threading.Tasks.ValueTask<System.Net.Security.SslServerAuthenticationOptions> ServerOptionsSelectionCallback(SslStream stream, SslClientHelloInfo clientHelloInfo, object? state, CancellationToken cancellationToken);
type ServerOptionsSelectionCallback = delegate of SslStream * SslClientHelloInfo * obj * CancellationToken -> ValueTask<SslServerAuthenticationOptions>
Public Delegate Function ServerOptionsSelectionCallback(stream As SslStream, clientHelloInfo As SslClientHelloInfo, state As Object, cancellationToken As CancellationToken) As ValueTask(Of SslServerAuthenticationOptions) 

Paramètres

stream
SslStream

Flux TLS sur lequel se produit l’authentification.

clientHelloInfo
SslClientHelloInfo

Informations du message Hello du client.

state
Object

Informations passées lors de l’inscription du rappel.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation.

Valeur renvoyée

Conteneur des propriétés d’authentification serveur.

Remarques

Ce délégué fournit des propriétés d’authentification pendant l’authentification du serveur en tant qu’opération asynchrone.

Méthodes d’extension

GetMethodInfo(Delegate)

Obtient un objet qui représente la méthode représentée par le délégué spécifié.

S’applique à