ServerOptionsSelectionCallback Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за