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