shoab shah How to enforce a function to call a call back function

Posted by Shoab.Shah under C# on 3/23/2016 | Points: 10 | Views : 1069 | Status : [Member] | Replies : 1
Hi All,
We have a situation. there are 2 classes in business logic layer. These classes have multiple functions which perform Insert / Update on a table.
There is another database operation which needs to be done after each of these function execution.

Thus, wanted to know how we can enforce these to classes functions to call a call back function after their execution.

Eg:

Class C1 has f1 & f2 functions. there is other class called C2 which has a afterfunc() function. We want after f1 & f2 execution afterfunc() get called.




Responses

Posted by: Rajnilari2015 on: 3/23/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
0
Down
It's seems from your question that you want to perform a synchronous call and not any asynchronous. In that case why you need a callback. Correct me if I am wrong ....

--
Thanks & Regards,
RNA Team

Shoab.Shah, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response