Exemplo n.º 1
0
        bool ServiceAvailable(string serviceUrl)
        {
            connectionProvider.ConnectTo(serviceUrl);

            var connected = serviceControl.IsAlive();

            return(connected);
        }
        private async Task <bool> ServiceAvailable(string serviceUrl)
        {
            _connectionProvider.ConnectTo(serviceUrl);

            var connected = await _serviceControl.IsAlive();

            return(connected);
        }
        async Task <bool> ServiceAvailable(string serviceUrl)
        {
            if (!serviceUrl.IsValidUrl())
            {
                return(false);
            }

            connectionProvider.ConnectTo(serviceUrl);

            var connected = await serviceControl.IsAlive();

            return(connected);
        }