IsNemoEqualTrue / monitor-table-change-with-sqltabledependency

Get SQL Server notification on record table change
MIT License
655 stars 177 forks source link

SqlTableDependency event trigger is not working if running as a BackgroundService #234

Closed joho75 closed 3 years ago

joho75 commented 3 years ago

I am running the SqlTableDependency service in a BackgroundService but the OnChanged event is not been called. It's it only possible to run the SqlTableDependency service as a console app?

joho75 commented 3 years ago

After I added the OnStatusChanged handler the onChanged event was fired when ever I do a db changes.