Method StartSessionAsync
StartSessionAsync(ClientSessionOptions, CancellationToken)
Starts a client session.
public virtual Task<IClientSessionHandle> StartSessionAsync(ClientSessionOptions options = null, CancellationToken cancellationToken = default)
Parameters
options
ClientSessionOptionsThe session options.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IClientSessionHandle>
A Task whose result is a client session.