ChannelPinningHelperCreateReadBinding Method |
Create a read binding handle.
Namespace:
MongoDB.Driver.Core
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax public static IReadBindingHandle CreateReadBinding(
ICluster cluster,
ICoreSessionHandle session,
ReadPreference readPreference
)
Public Shared Function CreateReadBinding (
cluster As ICluster,
session As ICoreSessionHandle,
readPreference As ReadPreference
) As IReadBindingHandle
static member CreateReadBinding :
cluster : ICluster *
session : ICoreSessionHandle *
readPreference : ReadPreference -> IReadBindingHandle
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:
IReadBindingHandleAn effective read binging.
See Also