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
MongoExceptionThe exception.
step
ISaslStepThe step caused the exception.
conversation
SaslConversationThe SASL conversation.
description
ConnectionDescriptionThe connection description.
nextStep
ISaslStepNext step to continue authentication with.
Returns
- bool
true if the exception was handled and authentication can be continued withnextStep
; otherwisefalse