IStatefulReconnectFeature 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
若要使用此预览 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 。 |