Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HttpsConnectionAdapterOptions.TlsClientHelloBytesCallback Property

Definition

Namespace:
Microsoft.AspNetCore.Server.Kestrel.Https
Assembly:
Microsoft.AspNetCore.Server.Kestrel.Core.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115

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.

Caution

Use ListenOptions.UseTlsClientHelloListener() instead.

A callback to be invoked to get the TLS client hello bytes. The client hello bytes are still wrapped in the record layer fragment. Null by default. If you want to store the bytes from the ReadOnlySequence<T>, copy them into a buffer that you control rather than keeping a reference to the ReadOnlySequence<T> or ReadOnlyMemory<T> instances.

public Action<Microsoft.AspNetCore.Connections.ConnectionContext,System.Buffers.ReadOnlySequence<byte>>? TlsClientHelloBytesCallback { get; set; }
[System.Obsolete("Use ListenOptions.UseTlsClientHelloListener() instead.", false)]
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
[<System.Obsolete("Use ListenOptions.UseTlsClientHelloListener() instead.", false)>]
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))

Property Value

Attributes

Remarks

If a client hello spans multiple record fragments then this callback only gets the first fragment. Use UseTlsClientHelloListener(ListenOptions, Action<ConnectionContext,ReadOnlySequence<Byte>>, Nullable<TimeSpan>) instead.

Applies to


Feedback

Was this page helpful?