.net - How to push notification to a console application using c#? -
code below gets status , file db pull mechanism, since breaks loop if status changed completed but, have problem here. should fail in error codes , keep going in case of error codes.
while (keeprunning) { try { if (!finder.getfile(processid, out file)) { keeprunning = false; } } catch (exception ex) { console.foregroundcolor = consolecolor.red; console.writeline("error message: {0}", ex.message); console.resetcolor(); } }
i think, need opposite direction call. instead keeping loop on until status changes, want keep client app wait on notification server, way can on come problem error code.
in sort, instead of pull mechanism, need push mechanism.
how can done? know reference implement pushing server client?
thanks.
Comments
Post a Comment