shoab shah

shoab shah

  • NA
  • 172
  • 0

How to enforce a function to call a call back function

Mar 23 2016 4:59 AM
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.

Answers (1)