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.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
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(DatabaseNamespace, BsonDocument, IElementNameValidator, FuncCommandResponseHandling, Boolean, IBsonSerializerTResult, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommandTResult(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IElementNameValidator, BsonDocument, FuncCommandResponseHandling, Boolean, IBsonSerializerTResult, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommandTResult(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IEnumerableType1CommandMessageSection, IElementNameValidator, BsonDocument, ActionIMessageEncoderPostProcessor, CommandResponseHandling, IBsonSerializerTResult, MessageEncoderSettings, CancellationToken)
Executes a Command protocol.
Public methodCommandAsyncTResult(DatabaseNamespace, BsonDocument, IElementNameValidator, FuncCommandResponseHandling, Boolean, IBsonSerializerTResult, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommandAsyncTResult(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IElementNameValidator, BsonDocument, FuncCommandResponseHandling, Boolean, IBsonSerializerTResult, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommandAsyncTResult(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IEnumerableType1CommandMessageSection, IElementNameValidator, BsonDocument, ActionIMessageEncoderPostProcessor, CommandResponseHandling, IBsonSerializerTResult, MessageEncoderSettings, CancellationToken)
Executes a Command protocol.
Public methodDelete
Executes a Delete protocol.
Public methodDeleteAsync
Executes a Delete protocol.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetMoreTDocument
Executes a GetMore protocol.
Public methodGetMoreAsyncTDocument
Executes a GetMore protocol.
Public methodInsertTDocument
Executes an Insert protocol.
Public methodInsertAsyncTDocument
Executes an Insert protocol.
Public methodKillCursors
Executes a KillCursors protocol.
Public methodKillCursorsAsync
Executes a KillCursors protocol.
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.
Public methodUpdate
Executes an Update protocol.
Public methodUpdateAsync
Executes an Update protocol.
Top
See Also