ServerOptionsSelectionCallback Délégué
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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)
- 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.
Conteneur des propriétés d’authentification serveur.
Ce délégué fournit des propriétés d’authentification pendant l’authentification du serveur en tant qu’opération asynchrone.
Get |
Obtient un objet qui représente la méthode représentée par le délégué spécifié. |
Produit | Versions |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :