Forum Discussion

OakTimbo's avatar
OakTimbo
Frequent Visitor
2 years ago

Automating a .NET Web API Solution

Hello.

I am a fairly new developer but have successfully created a .NET Web API application using .NET 5. The SWAGGER UI works perfectly when I manually execute the API requests. Good news!

Now I am trying to automate the process by creating a scheduled task that runs every evening. The only way I have been able to achieve this by keeping this solution running at the times it is required and by writing a console application that calls the same end points that the SWAGGER UI uses. I think that this triggers the local IIS to serve the content.

Intuitively this does not seem right, but I cannot find a better way. I would have thought that I could have run the executable file (standalone deployment) but this doesn’t appear to work.

Thoughts appreciated and thanks in advance.

No RepliesBe the first to reply