Table of Contents

Method GetWriteChannelSourceAsync

Namespace
MongoDB.Driver.Core.Bindings
Assembly
MongoDB.Driver.Core.dll

GetWriteChannelSourceAsync(CancellationToken)

Gets a channel source for write operations.

public Task<IChannelSourceHandle> GetWriteChannelSourceAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

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

mayUseSecondary IMayUseSecondaryCriteria

The may use secondary criteria.

cancellationToken CancellationToken

The cancellation token.

Returns

Task<IChannelSourceHandle>

A channel source.