Maintain a C# - Rest request

Asked

Viewed 53 times

1

The doubt I have is more conceptual than in code.

I have a Rest that is a server service, the same is done in C#, I would like every day at a specific time it would request a URL X. I thought of putting a timer on my C# dekstop application that consumes the Rest and calling the url in question, but I stopped in the way that the computer that consumes Rest is not turned on. I can make the service itself see a timer inside it and call my URL, or something like that?

1 answer

1


Not in a Rest api, what you can do is schedule this task on the application server or develop is a windows service that will run there. You can also add this job to the database (if your application and structure has some).

Conceptually, as you do not depend on the return of data in the execution of the method of this API Rest, it would make more sense the windows service option but instead of communicating with your Rest, already perform the routine you want.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.