ServiceBrokerListener
ServiceBrokerListener copied to clipboard
Better example
Can you provide a little more thorough sample application? This doesn't really show us how to use your class...
Hm. What part of the sample code is unclear? There are 3 steps:
- You create and instance of SqlDependencyEx
- You subscribe on event notifications (TableChanged event)
- You start/stop notifications
After you start the listener, what does the e.Data actually look like and how would you use it? Is the code for the live demo that you have running available?
There is a XML property: public XElement Data You can use that to see what actual data was inserted/deleted/updated (all columns with data are included as text). The sample project is also in the same repository.
Can you provide sample application like if data updated in table, so we need updated data and previous data
Hello,
You can check how it works in unit tests here. Please let me know if you have any other questions.
Thanks, Dmitrii
Thank you. I will check it and let you know if I have any questions.
Sent from my iPhone
On Jul 4, 2019, at 12:47 PM, Dmitriy Dyatchenko [email protected] wrote:
Hello,
You can check how it works in unit tests here. Please let me know if you have any other questions.
Thanks, Dmitrii
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hello
I have enabled the database broker and used the unit test scenario to build my application but sqldependency.TableChanged +-= (o,e) {}; this event is not fired and it’s not showing e.data parameters. Like I used update notification but e.data showing null only in that method. I was used detailTest() in your unit test class. Could please help me to fix this issue?
Thanks Vamshi
Sent from my iPhone
On Jul 4, 2019, at 12:47 PM, Dmitriy Dyatchenko [email protected] wrote:
Hello,
You can check how it works in unit tests here. Please let me know if you have any other questions.
Thanks, Dmitrii
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hello,
Could you please share what SQL version are you running it on?
Thanks, Dmitrii