Method GetReadChannelSourceAsync
GetReadChannelSourceAsync(CancellationToken)
Gets a channel source for read operations.
public Task<IChannelSourceHandle> GetReadChannelSourceAsync(CancellationToken cancellationToken)Parameters
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<IChannelSourceHandle>
- A channel source. 
GetReadChannelSourceAsync(IReadOnlyCollection<ServerDescription>, CancellationToken)
Gets a channel source for read operations while deprioritizing servers in the provided collection.
public Task<IChannelSourceHandle> GetReadChannelSourceAsync(IReadOnlyCollection<ServerDescription> deprioritizedServers, CancellationToken cancellationToken)Parameters
- deprioritizedServersIReadOnlyCollection<ServerDescription>
- The deprioritized servers. 
- cancellationTokenCancellationToken
- The cancellation token. 
Returns
- Task<IChannelSourceHandle>
- A channel source.