Method GetWriteChannelSource
GetWriteChannelSource(CancellationToken)
Gets a channel source for write operations.
public IChannelSourceHandle GetWriteChannelSource(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.
GetWriteChannelSource(IReadOnlyCollection<ServerDescription>, CancellationToken)
Gets a channel source for write operations while deprioritizing servers in the provided collection.
public IChannelSourceHandle GetWriteChannelSource(IReadOnlyCollection<ServerDescription> deprioritizedServers, CancellationToken cancellationToken)
Parameters
deprioritizedServersIReadOnlyCollection<ServerDescription>The deprioritized servers.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.
GetWriteChannelSource(IMayUseSecondaryCriteria, CancellationToken)
Gets a channel source for write operations that may use a secondary.
public IChannelSourceHandle GetWriteChannelSource(IMayUseSecondaryCriteria mayUseSecondary, CancellationToken cancellationToken)
Parameters
mayUseSecondaryIMayUseSecondaryCriteriaThe may use secondary criteria.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.
GetWriteChannelSource(IReadOnlyCollection<ServerDescription>, IMayUseSecondaryCriteria, CancellationToken)
Gets a channel source for write operations that may use a secondary and deprioritizes servers in the provided collection.
public IChannelSourceHandle GetWriteChannelSource(IReadOnlyCollection<ServerDescription> deprioritizedServers, IMayUseSecondaryCriteria mayUseSecondary, CancellationToken cancellationToken)
Parameters
deprioritizedServersIReadOnlyCollection<ServerDescription>The deprioritized servers.
mayUseSecondaryIMayUseSecondaryCriteriaThe may use secondary criteria.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- IChannelSourceHandle
A channel source.