Search code examples
c#authenticationdata-collection

Best practice of writing a program which has too many data collection processes C#


I have to login in to various elements to retrieve some data, problem is each element has its own login credentials, I want to write all such data collection processes into one single program so that I dont have 10 different scheduled processes to look at.

Did any of you have such a challenge, if so how did you go about it? I am right now doing it the top down way, so its after the first data collection process gets implemented the program goes for the next...

I know that this is not the right way, I have threads and processes in mind, but being a beginner I'm kinda lost now.


Solution

  • if the process of collecting data of the different sources is taking longer you could get faster results if you do it with multithreading and callbacks, but if in normal case it takes not really long, why not make it as simple as possible.