Interface IRunHook
Denotes Runnable entities that explicitly hook into method prologue and epilogue
Assembly: Azos.dll
Syntax
public interface IRunHook
Methods
Epilogue(Runner, FID, MethodInfo, RunAttribute, Exception)
Handles the post factum call, return true if exception was handled by this method and should NOT be handled/thrown by runner
Declaration
bool Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
FID |
id |
|
System.Reflection.MethodInfo |
method |
|
RunAttribute |
attr |
|
System.Exception |
error |
|
Returns
Type |
Description |
System.Boolean |
|
Prologue(Runner, FID, MethodInfo, RunAttribute, ref Object[])
Invoked before every method invocation in runnable instance. May mutate method call arguments.
Returns true when Prologue handles the method call and runner should NOT continue method execution and Epilogue calls
Declaration
bool Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args)
Parameters
Type |
Name |
Description |
Runner |
runner |
|
FID |
id |
|
System.Reflection.MethodInfo |
method |
|
RunAttribute |
attr |
|
System.Object[] |
args |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods