Esempio n. 1
0
        internal async Task InitializeAsync()
        {
            try
            {
                await _context.InitializeAsync();

                UpdateClusterCapabilities();
            }
            catch (AuthenticationException e)
            {
                //auth failed so bubble up exception and clean up resources
                Log.LogError(e, @"Could not authenticate user {_clusterOptions.UserName}");

                _context.RemoveNodes();
                throw;
            }
        }
Esempio n. 2
0
        internal async Task InitializeAsync()
        {
            try
            {
                await _context.InitializeAsync();

                _hasBootStrapped = _context.GlobalConfig != null;
                UpdateClusterCapabilities();
            }
            catch (AuthenticationFailureException e)
            {
                //auth failed so bubble up exception and clean up resources
                _logger.LogError(e, @"Could not authenticate user {_clusterOptions.UserName}");

                _context.RemoveNodes();
                throw;
            }
        }