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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -