S
S
Sasha Pleshakov2016-10-21 13:55:35
C++ / C#
Sasha Pleshakov, 2016-10-21 13:55:35

Is it possible to create a constantly executing c# script?

You need to create a script that would check some condition at a certain time and perform subsequent actions. But I don't know what technology to use to do this.
I decided to use webJob.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anton Fedoryan, 2016-10-21
@mnepoh

You need to create a script that would check some condition and perform subsequent actions
, and add it to the task scheduler, for example, which will run it at
certain time

G
GavriKos, 2016-10-21
@GavriKos

Response to the heading:
while (true) - executed constantly
Response to the body - in Windows there is a scheduler - if you are right here at a certain time.
Another option is to do it on a timer (a standard component), to do a service.

N
Nikita Zhuravlev, 2016-10-21
@LLIKIPER

  • Timer if you need to execute in the same thread (the easiest way)
  • Create a background thread, it has an endless loop of actions and falling asleep.
  • A simple application with actions and shove it into the scheduler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question