Crystalbyte.Equinox.Imap.ImapClient.InvokeManualSaslAuthenticationRequired C# (CSharp) Method

InvokeManualSaslAuthenticationRequired() private method

Attempt to notify the application that automatic sasl authentication is not possible. The ManualSaslAuthenticationRequired event will be thrown.
private InvokeManualSaslAuthenticationRequired ( NetworkCredential credential, ImapClient client ) : bool
credential System.Net.NetworkCredential The credentials provided by the user.
client ImapClient The current instance of the client, responsible for the connection.
return bool
        internal bool InvokeManualSaslAuthenticationRequired(NetworkCredential credential, ImapClient client)
        {
            var handler = ManualSaslAuthenticationRequired;
            if (handler != null) {
                var e = new ManualSaslAuthenticationRequiredEventArgs(credential, client);
                handler(this, e);
                return e.IsAuthenticated;
            }
            return false;
        }