示例#1
0
        /// <inheritdoc />
        public async Task <bool> CheckDatabaseConnectionAsync()
        {
            try
            {
                await Beers.AnyAsync();

                return(true);
            }
            catch (SocketException)
            {
                return(false);
            }
            catch (InvalidOperationException)
            {
                return(false);
            }
        }