-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sql table dependency task cancellation #221
Comments
HI Alex, I'm trying to get it working as a background task too, I'm getting closer - but I think we need to crack open the API a bit to support it. |
Hello @ajex85 , I found the same problem at work. I have setup the event OnStatusChanged, and if the service get a TableDependencyStatus.WaitingForNotification, we try to restart the notification. Here the code (missing not usefull part), we are using version 8.5.8.0
Have a nice day |
Hello!
I' m trying to use Table sql dependency as hosted service inside and asp.net core web.api project. The issue is that after the initialization phase I receive a cancellation token and the notification doesn't work
this is the log:
2020-12-08 16:56:52.412 []Trigger dbo_RES_INFO_LINEA_2e6eecda-cdd0-4486-a262-01fc26c4cb3b created.
2020-12-08 16:56:52.489 []Watch dog started.
2020-12-08 16:56:52.573 []All OK! Database objects created with naming dbo_RES_INFO_LINEA_2e6eecda-cdd0-4486-a262-01fc26c4cb3b.
2020-12-08 16:56:52.574 []Waiting for receiving RES_INFO_LINEA's records change notifications.
2020-12-08 16:56:52.590 []Get in WaitForNotifications.
2020-12-08 16:57:07.588 []Operation canceled.
2020-12-08 16:57:07.929 []DropDatabaseObjects method executed.
2020-12-08 16:57:07.929 []Stopped waiting for notification.
I faced the same behaviour using a worker service (so windows service project) in .net core. The only way I was able to get it working is using a console application but it' s not my scope. Is there a way to make it working or could you point me to where the issue could be using these hosted service?
The text was updated successfully, but these errors were encountered: