c# ping a website? (keep-alive service)

前端 未结 6 2080
感情败类
感情败类 2021-01-05 16:02

is there a way in c# to be able to ping a url every 15 minutes and get a response back from the server?

i want to try to see if .net can be used to build a simple to

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 16:16

    I'd install curl and use a scheduled task to do what you want.

    I've combined it with powershell to restart app pools too.

提交回复
热议问题