Last post May 18, 2016 06:26 AM by Yohann Lu
May 17, 2016 03:50 PM|jeeva99|LINK
I have a requirement where i need to load events from sql table. where the table contains event name and even id. Based on the number of events we need to hook up logic using the c# application. let me be more clear about what i envision.
so guys please share your thoughts or sample code.
May 17, 2016 05:06 PM|AZMatt|LINK
also the application should hook up logic to each of the respective event. all the c# classes should be extensible where in if we add a new event info to the sql table the c# app should automatically generate the event skeleton and we should be in a place where we can hook up our own logic to event.
Could you explain what you mean by "hook up logic"?
May 17, 2016 05:15 PM|PatriceSc|LINK
And sometimes it's best to explain the overall goal rather than to give implementation détails. I never used it and don't know really what it is exactly but it made me thought about
https://msdn.microsoft.com/en-us/library/ee391416(v=sql.111).aspx (StreamInsight which is SQL Server based)
May 17, 2016 05:24 PM|jeeva99|LINK
Tying the respective event handlers.
May 18, 2016 06:26 AM|Yohann Lu|LINK
From your description, I think the following tutorials may be helpful for you.
1: Implement Events in Your Class:
2: Creating advanced C# custom events:
3: How can I make my own event in C#: