IStatefulReconnectFeature 接口

定义

注意

若要使用此预览 API,必须通过在项目文件中将 EnablePreviewFeatures 属性设置为 True,在项目中启用预览功能。 有关详细信息,请参阅 https://aka.ms/dotnet-preview-features

IStatefulReconnectFeature is a preview interface.

提供对连接重新连接操作的访问。

public interface IStatefulReconnectFeature
type IStatefulReconnectFeature = interface
Public Interface IStatefulReconnectFeature

注解

此功能是实验性的。

方法

DisableReconnect()

允许禁用重新连接功能,以便不再允许重新连接。

OnReconnected(Func<PipeWriter,Task>)

在连接重新连接时调用。 传入应用程序代码应写入的新 PipeWriter

适用于