Exemple #1
0
        public void Connect(string login = null, string pwd = null)
        {
            if (!string.IsNullOrEmpty(login))
            {
                _login = login;
            }
            if (!string.IsNullOrEmpty(pwd))
            {
                _password = pwd;
            }

            if (!string.IsNullOrEmpty(_login) && !string.IsNullOrEmpty(_password))
            {
                _client       = BitbucketClient.WithBasicAuthentication(_login, _password);
                _clientCommit = new ClientCommit(_client);
                _clientRepo   = new RepoClient(_client);
            }
            ConnectionChanged?.Invoke(null);
        }