Click or drag to resize

IChannel Interface

Represents a channel (similar to a connection but operates at the level of protocols rather than messages).

Namespace:  MongoDB.Driver.Core.Bindings
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public interface IChannel : IDisposable

The IChannel type exposes the following members.

Properties
  NameDescription
Public propertyConnection
Gets the connection.
Public propertyConnectionDescription
Gets the connection description.
Top
Methods
  NameDescription
Public methodCommandTResult
Executes a Command protocol.
Public methodCommandAsyncTResult
Executes a Command protocol.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodQueryTDocument(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializerTDocument, MessageEncoderSettings, CancellationToken)
Executes a Query protocol.
Public methodQueryTDocument(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializerTDocument, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Query protocol.
Public methodQueryAsyncTDocument(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializerTDocument, MessageEncoderSettings, CancellationToken)
Executes a Query protocol.
Public methodQueryAsyncTDocument(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializerTDocument, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Query protocol.
Top
See Also