Share via


StreamingConnection Class

Definition

A streaming based connection that can listen for incoming requests and send them to a RequestHandler, and can also send requests to the other end of the connection.

public abstract class StreamingConnection : IDisposable
type StreamingConnection = class
    interface IDisposable
Public MustInherit Class StreamingConnection
Implements IDisposable
Inheritance
StreamingConnection
Derived
Implements

Constructors

StreamingConnection(ILogger)

Initializes a new instance of the StreamingConnection class.

Properties

IsConnected

Gets a value indicating whether this is currently connected.

Logger

Gets the ILogger instance for the streaming connection.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Disposes managed and unmanaged resources of the underlying StreamingConnection.

ListenAsync(RequestHandler, CancellationToken)

Opens the StreamingConnection and listens for incoming requests, which will be assembled and sent to the provided RequestHandler.

SendStreamingRequestAsync(StreamingRequest, CancellationToken)

Sends a streaming request through the connection.

Applies to