For my application I need to call to an HTTP server to ask several questions.
I made an HTTP service that I can choose, by an index, the question. It works fine.
I need some of these questions to run periodically. The repetition time of each question is variable, depending on the importance of each. Also the total number of questions is undetermined, as is the server who tells me which are and how often it is repeated on each.
But I do not know how to do these repetitions.
I thought about doing it with "Timers" or "StartServiceAt" but do not know how. I do not think that's a good idea to create (in advance) about 20 services to manage all the "StartServiceAt".
Do I have to assemble n services for each process? The problem is I do not know how many are (I will receive it in the first communication) and I can not create it dynamically, I think.
Something as simple as "CallSubDelayed" would be fine if I could control the delay time (but "CallSubDelayed" does not work this way).
Anyone have any idea? and better if it were simple!
Thanks in advance, and I hope you understand my poor English.
I made an HTTP service that I can choose, by an index, the question. It works fine.
I need some of these questions to run periodically. The repetition time of each question is variable, depending on the importance of each. Also the total number of questions is undetermined, as is the server who tells me which are and how often it is repeated on each.
But I do not know how to do these repetitions.
I thought about doing it with "Timers" or "StartServiceAt" but do not know how. I do not think that's a good idea to create (in advance) about 20 services to manage all the "StartServiceAt".
Do I have to assemble n services for each process? The problem is I do not know how many are (I will receive it in the first communication) and I can not create it dynamically, I think.
Something as simple as "CallSubDelayed" would be fine if I could control the delay time (but "CallSubDelayed" does not work this way).
Anyone have any idea? and better if it were simple!
Thanks in advance, and I hope you understand my poor English.