When you call the SqlTableDependency<T>.Stop() method an UnobservedTaskException event is raised.
My app is setup to crash when such an event occurs - it has the following line in the app.config file <ThrowUnobservedTaskExceptions enabled="true" />
UnobservedTaskException details on Microsoft website link
I have debugged the SqlTableDependency library and I think I might have found the problem of this behavior that is not supposed to happen - you don't want UnobservedTaskException events raised when you call Stop()
I am going to make a fix + a test case and submit a PR.
When you call the
SqlTableDependency<T>.Stop()method anUnobservedTaskExceptionevent is raised.My app is setup to crash when such an event occurs - it has the following line in the app.config file
<ThrowUnobservedTaskExceptions enabled="true" />UnobservedTaskException details on Microsoft website link
I have debugged the SqlTableDependency library and I think I might have found the problem of this behavior that is not supposed to happen - you don't want
UnobservedTaskExceptionevents raised when you callStop()I am going to make a fix + a test case and submit a PR.