如果流程超过我指定的时间,我可以重新启动流程吗?例如,我制作了一个响应标头,如果响应过程超过 10 秒,则该过程重新启动。
'time limit = 10 second
'if the process exceed time limit than restart the process
Dim request As System.Net.webrequest = System.Net.HttpWebRequest.Create(URL)
request.Method = "HEAD"
Dim response As System.Net.WebResponse = request.GetResponse()