Click or drag to resize

ChannelPinningHelperCreateReadBinding Method

Create a read binding handle.

Namespace:  MongoDB.Driver.Core
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
public static IReadBindingHandle CreateReadBinding(
	ICluster cluster,
	ICoreSessionHandle session,
	ReadPreference readPreference
)

Parameters

cluster
Type: MongoDB.Driver.Core.ClustersICluster
The cluster,
session
Type: MongoDB.Driver.Core.BindingsICoreSessionHandle
The session.
readPreference
Type: MongoDB.DriverReadPreference
The read preference.

Return Value

Type: IReadBindingHandle
An effective read binging.
See Also