Deveel.Data.Client.ConnectionClient.Authenticate C# (CSharp) Method

Authenticate() public method

public Authenticate ( ) : bool
return bool
        public bool Authenticate()
        {
            var response = SendMessage(new AuthenticateRequest(Settings.Schema, Settings.UserName, Settings.Password))
                as AuthenticateResponse;

            if (response == null)
                throw new InvalidOperationException("No response from the server");

            return response.Authenticated;
        }