HttpsConnectionAdapterOptions.TlsClientHelloBytesCallback 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
要调用的回调以获取 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 跨越多个记录片段,则此回调仅获取第一个片段。