コード例 #1
0
 /// <summary>
 ///     Pings a URL
 /// </summary>
 /// <param name="url"></param>
 /// <returns></returns>
 public bool PingUrl(string url)
 {
     return(WebRequestor.PingUrl(url));
 }
コード例 #2
0
 public bool WaitForRoleToRespond(string url, int timeoutInMilliSeconds = 900000)
 {
     return(RetryHelper.RetryUntil(() => _webRequestor.PingUrl(url), timeoutInMilliSeconds / 1000, TimeSpan.FromSeconds(1)));
 }