Dela via


IStatefulReconnectFeature Interface

Definition

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

IStatefulReconnectFeature is a preview interface.

Provides access to connection reconnect operations.

public interface IStatefulReconnectFeature
type IStatefulReconnectFeature = interface
Public Interface IStatefulReconnectFeature

Remarks

This feature is experimental.

Methods

DisableReconnect()

Allows disabling the reconnect feature so a reconnecting connection will not be allowed anymore.

OnReconnected(Func<PipeWriter,Task>)

Called when a connection reconnects. The new PipeWriter that application code should write to is passed in.

Applies to