HttpsConnectionAdapterOptions.TlsClientHelloBytesCallback 属性

定义

要调用的回调以获取 TLS 客户端 hello 字节。 客户端 hello 字节仍包装在记录层片段中。 默认情况下为 Null。 如果要存储字节, ReadOnlySequence<T>请将它们复制到你控制的缓冲区中,而不是保留对 ReadOnlySequence<T>ReadOnlyMemory<T> 实例的引用。

public Action<Microsoft.AspNetCore.Connections.ConnectionContext,System.Buffers.ReadOnlySequence<byte>>? TlsClientHelloBytesCallback { get; set; }
member this.TlsClientHelloBytesCallback : Action<Microsoft.AspNetCore.Connections.ConnectionContext, System.Buffers.ReadOnlySequence<byte>> with get, set
Public Property TlsClientHelloBytesCallback As Action(Of ConnectionContext, ReadOnlySequence(Of Byte))

属性值

注解

如果客户端 hello 跨越多个记录片段,则此回调仅获取第一个片段。

适用于