Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3663

Call a Web API in a Windows Service?

$
0
0

I have developed a Web API in .net and I would like to have some kind of service that would download emails from an outlook account and put data from emails in my database using my API (for example I would like to create a new Instance of my Class Player that is in my API and then persist it on my database). I am very new to this so I apologize if anything is not clear in my question please don't mind asking me details.

I have managed to connect and extract data from emails already on another solution, it works but now I want to create something cleaner that would run all day long to check if there is new mails and then create new "Players" for example using my API

So my question is : is creating a Windows Service a good choice ? (I'm guessing creating a new project in the API's solution dedicated to this feature is a good choice).

I have read some articles about Self-Hosting WEB API on Windows Services but I'm not sure that's what I want to do

Any tips / advice would be more than welcome !


Viewing all articles
Browse latest Browse all 3663

Trending Articles