Deveel.Data.Client.ConnectionClient.Authenticate C# (CSharp) Méthode

Authenticate() public méthode

public Authenticate ( ) : bool
Résultat 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;
        }