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

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

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -