ServerOptionsSelectionCallback Delegar

Definição

Representa o método de retorno de chamada assíncrono que selecionará as propriedades da sessão com base no nome solicitado pelo cliente.Represents the asynchronous callback method that will select session properties based on the name requested by the 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) 

Parâmetros

stream
SslStream

O fluxo TLS no qual a autenticação ocorre.The TLS stream on which the authentication happens.

clientHelloInfo
SslClientHelloInfo

Informações da mensagem do Client Hello.Information from the Client Hello message.

state
Object

As informações que foram aprovadas ao registrar o retorno de chamada.The information that was passed when registering the callback.

cancellationToken
CancellationToken

O token a se monitorar para solicitações de cancelamento.The token to monitor for cancellation requests.

Valor Retornado

ValueTask<SslServerAuthenticationOptions>

Um recipiente de propriedades de autenticação de servidor.A server authentication property bag.

Comentários

Esse delegado fornece propriedades de autenticação durante o Authentication do servidor como uma operação assíncrona.This delegate provides authentication properties during the server authenticaton as an asynchronous operation.

Métodos de Extensão

GetMethodInfo(Delegate)

Obtém um objeto que representa o método representado pelo delegado especificado.Gets an object that represents the method represented by the specified delegate.

Aplica-se a