Udit Chauhan

Udit Chauhan

  • 1.3k
  • 441
  • 31.5k

How to Independently task execution in c#

Jul 27 2023 6:45 AM

I have one problem  where , there is one task schedular which is running in a interval of 15 minutes  where two methods are running. One method is getting some details by calling API. Second method do some operations .

Problem is like when second method is running and busy to download something , it is taking some time to complete . Meanwhile task schedular is running and in that time application is busy in second method and not getting the data by calling first method.

So , how to make two task independly or how to get to knoe previous task schedular specific method is ruuning if running then it will execute as usual and application call the first method as usual.

 


Answers (2)