Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Connections.​Abstractions.​IStatefulReconnectFeature

Assembly: Microsoft.AspNetCore.Connections.Abstractions

Provides access to connection reconnect operations.

Remarks

This feature is experimental.

Methods

void
OnReconnected​(System.​Func<​System.​IO.​Pipelines.​PipeWriter, System.​Threading.​Tasks.​Task> notifyOnReconnect)
Called when a connection reconnects. The new <see cref="T:System.IO.Pipelines.PipeWriter" /> that application code should write to is passed in.
void
DisableReconnect​()
Allows disabling the reconnect feature so a reconnecting connection will not be allowed anymore.