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
exceptionMongoExceptionThe exception.
stepISaslStepThe step caused the exception.
conversationSaslConversationThe SASL conversation.
descriptionConnectionDescriptionThe connection description.
nextStepISaslStepNext step to continue authentication with.
Returns
- bool
true if the exception was handled and authentication can be continued withnextStep; otherwisefalse