c# background task with class library (uwp app) -


i'm trying make program gets information of system , sends cloud system.

so, want program works in background task only.

i heard can use class library(.dll) make it.

what wanna know is....

is possible make dll file background task , start-up task too?

you may run windows service. suggest create console application following code:

static void main(string[] args) {     yourservice service = new yourservice();      if (environment.userinteractive)     {         service.onstart(args);         console.writeline("press key stop program");         console.read();         service.onstop();     }     else     {         servicebase.run(service);     }  } 

this more easy debug don't need reinstall service each time make changes.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -