Method StartSessionAsync
StartSessionAsync(ClientSessionOptions, CancellationToken)
Starts a client session.
public override sealed 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.