Esempio n. 1
0
        public async void YandexStatus()
        {
            var httpClient = new HttpClient();
            var service    = new HttpSiteMonitoringService(httpClient);

            var siteInfo = new SiteInfo()
            {
                Name            = "yandex",
                RefreshInterval = 60000,
                Url             = "https://yandex.ru"
            };
            var status = await service.GetResponseAsync(siteInfo);

            Assert.Equal(200, status.StatusCode);
        }