Table of Contents

Interface IStreamFactory

Namespace
MongoDB.Driver.Core.Connections
Assembly
MongoDB.Driver.Core.dll

Represents a stream factory.

public interface IStreamFactory

Methods

CreateStream(EndPoint, CancellationToken)

Creates a stream.

Stream CreateStream(EndPoint endPoint, CancellationToken cancellationToken)

Parameters

endPoint EndPoint

The end point.

cancellationToken CancellationToken

The cancellation token.

Returns

Stream

A Stream.

CreateStreamAsync(EndPoint, CancellationToken)

Creates a stream.

Task<Stream> CreateStreamAsync(EndPoint endPoint, CancellationToken cancellationToken)

Parameters

endPoint EndPoint

The end point.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<Stream>

A Task whose result is the Stream.