Table of Contents

Method TryHandleAuthenticationException

Namespace
MongoDB.Driver.Authentication
Assembly
MongoDB.Driver.dll

TryHandleAuthenticationException(MongoException, ISaslStep, SaslConversation, ConnectionDescription, out ISaslStep)

Tries to handle the authentication exception.

bool TryHandleAuthenticationException(MongoException exception, ISaslStep step, SaslConversation conversation, ConnectionDescription description, out ISaslStep nextStep)

Parameters

exception MongoException

The exception.

step ISaslStep

The step caused the exception.

conversation SaslConversation

The SASL conversation.

description ConnectionDescription

The connection description.

nextStep ISaslStep

Next step to continue authentication with.

Returns

bool

true if the exception was handled and authentication can be continued with nextStep; otherwise false