Editare

Partajați prin


ServerOptionsSelectionCallback Delegate

Definition

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) 

Parameters

stream
SslStream

The TLS stream on which the authentication happens.

clientHelloInfo
SslClientHelloInfo

Information from the Client Hello message.

state
Object

The information that was passed when registering the callback.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Return Value

A server authentication property bag.

Remarks

This delegate provides authentication properties during the server authenticaton as an asynchronous operation.

Extension Methods

GetMethodInfo(Delegate)

Gets an object that represents the method represented by the specified delegate.

Applies to