c# - Unobserved task exception handling with TopShelf -


i using topshelf framework working great. having great trouble figuring out how register top level exception filter unobserved task exceptions (i.e subscribing taskscheduler.unobservedtaskexception).

i tried different places register event, no matter what, never notification when throw exceptions non awaited tasks.

how can correctly these notifications when using topshelf.

thanks.

my bad,

it had nothing related topshelf behavior of taskscheduler.unobservedtaskexception must wait exception throwing task garbage collected before getting exception :(


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -