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.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public interface IChannel : IDisposable

The IChannel type exposes the following members.

Properties
  NameDescription
Public propertyConnectionDescription
Gets the connection description.
Top
Methods
  NameDescription
Public methodCommand<TResult>(DatabaseNamespace, BsonDocument, IElementNameValidator, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommand<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IElementNameValidator, BsonDocument, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommand<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IEnumerable<Type1CommandMessageSection>, IElementNameValidator, BsonDocument, Action<IMessageEncoderPostProcessor>, CommandResponseHandling, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken)
Executes a Command protocol.
Public methodCommandAsync<TResult>(DatabaseNamespace, BsonDocument, IElementNameValidator, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommandAsync<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IElementNameValidator, BsonDocument, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
Public methodCommandAsync<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IEnumerable<Type1CommandMessageSection>, IElementNameValidator, BsonDocument, Action<IMessageEncoderPostProcessor>, CommandResponseHandling, IBsonSerializer<TResult>, 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 methodGetMore<TDocument>
Executes a GetMore protocol.
Public methodGetMoreAsync<TDocument>
Executes a GetMore protocol.
Public methodInsert<TDocument>
Executes an Insert protocol.
Public methodInsertAsync<TDocument>
Executes an Insert protocol.
Public methodKillCursors
Executes a KillCursors protocol.
Public methodKillCursorsAsync
Executes a KillCursors protocol.
Public methodQuery<TDocument>
Executes a Query protocol.
Public methodQueryAsync<TDocument>
Executes a Query protocol.
Public methodUpdate
Executes an Update protocol.
Public methodUpdateAsync
Executes an Update protocol.
Top
See Also