Click or drag to resize

IChannelHandle Interface

Represents a handle to a channel.

Namespace:  MongoDB.Driver.Core.Bindings
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public interface IChannelHandle : IChannel, 
	IDisposable

The IChannelHandle type exposes the following members.

Properties
  NameDescription
Public propertyConnection
Gets the connection.
(Inherited from IChannel.)
Public propertyConnectionDescription
Gets the connection description.
(Inherited from IChannel.)
Top
Methods
  NameDescription
Public methodCommand<TResult>(DatabaseNamespace, BsonDocument, IElementNameValidator, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
(Inherited from IChannel.)
Public methodCommand<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IElementNameValidator, BsonDocument, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
(Inherited from IChannel.)
Public methodCommand<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IEnumerable<Type1CommandMessageSection>, IElementNameValidator, BsonDocument, Action<IMessageEncoderPostProcessor>, CommandResponseHandling, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken)
Executes a Command protocol.
(Inherited from IChannel.)
Public methodCommandAsync<TResult>(DatabaseNamespace, BsonDocument, IElementNameValidator, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
(Inherited from IChannel.)
Public methodCommandAsync<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IElementNameValidator, BsonDocument, Func<CommandResponseHandling>, Boolean, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Command protocol.
(Inherited from IChannel.)
Public methodCommandAsync<TResult>(ICoreSession, ReadPreference, DatabaseNamespace, BsonDocument, IEnumerable<Type1CommandMessageSection>, IElementNameValidator, BsonDocument, Action<IMessageEncoderPostProcessor>, CommandResponseHandling, IBsonSerializer<TResult>, MessageEncoderSettings, CancellationToken)
Executes a Command protocol.
(Inherited from IChannel.)
Public methodDelete
Executes a Delete protocol.
(Inherited from IChannel.)
Public methodDeleteAsync
Executes a Delete protocol.
(Inherited from IChannel.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodFork
Returns a new handle to the underlying channel.
Public methodGetMore<TDocument>
Executes a GetMore protocol.
(Inherited from IChannel.)
Public methodGetMoreAsync<TDocument>
Executes a GetMore protocol.
(Inherited from IChannel.)
Public methodInsert<TDocument>
Executes an Insert protocol.
(Inherited from IChannel.)
Public methodInsertAsync<TDocument>
Executes an Insert protocol.
(Inherited from IChannel.)
Public methodKillCursors
Executes a KillCursors protocol.
(Inherited from IChannel.)
Public methodKillCursorsAsync
Executes a KillCursors protocol.
(Inherited from IChannel.)
Public methodQuery<TDocument>(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializer<TDocument>, MessageEncoderSettings, CancellationToken)
Executes a Query protocol.
(Inherited from IChannel.)
Public methodQuery<TDocument>(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializer<TDocument>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Query protocol.
(Inherited from IChannel.)
Public methodQueryAsync<TDocument>(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializer<TDocument>, MessageEncoderSettings, CancellationToken)
Executes a Query protocol.
(Inherited from IChannel.)
Public methodQueryAsync<TDocument>(CollectionNamespace, BsonDocument, BsonDocument, IElementNameValidator, Int32, Int32, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, IBsonSerializer<TDocument>, MessageEncoderSettings, CancellationToken) Obsolete.
Executes a Query protocol.
(Inherited from IChannel.)
Public methodUpdate
Executes an Update protocol.
(Inherited from IChannel.)
Public methodUpdateAsync
Executes an Update protocol.
(Inherited from IChannel.)
Top
See Also