private bool SendHello()
            {
                IAsyncResult result = HelloCommand.BeginSend(this.connection, this.connection.client.clientDomain, sendHelloCallback, this);

                if (result.CompletedSynchronously)
                {
                    this.connection.supportedAuth = SupportedAuth.Login;
                    HelloCommand.EndSend(result);
                    this.Authenticate();
                    return(true);
                }
                return(false);
            }
Esempio n. 2
0
            private bool SendHello()
            {
                IAsyncResult result = HelloCommand.BeginSend(_connection, _connection._client.clientDomain, s_sendHelloCallback, this);

                //if ehello isn't supported, assume basic auth
                if (result.CompletedSynchronously)
                {
                    _connection._supportedAuth = SupportedAuth.Login;
                    HelloCommand.EndSend(result);
                    Authenticate();
                    return(true);
                }
                return(false);
            }