ServerOptionsSelectionCallback Delegate
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)
- 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.
A server authentication property bag.
This delegate provides authentication properties during the server authenticaton as an asynchronous operation.
Get |
Gets an object that represents the method represented by the specified delegate. |
Product | Versions |
---|---|
.NET | 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: