bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { return(false);//<--- The exception is NOT handled here, do default handling }
public bool Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args) { m_App = new AzosApplication(null, (args[0].AsInt()==1 ? confR1 : confR2).AsLaconicConfig(handling: Data.ConvertErrorHandling.Throw)); return false; }
public bool Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { DisposableObject.DisposeAndNull(ref m_App); return false; }
public bool Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) => false;
bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { DisposableObject.DisposeAndNull(ref m_Store); return(false); }
bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { GC.Collect(); NFX.IOMiscUtils.EnsureDirectoryDeleted(LOCAL_ROOT); return(false); }
public bool Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args) { ArowSerializer.RegisterTypeSerializationCores(Assembly.GetCallingAssembly()); return(false); }
bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { m_RunEpilogueCount++; Console.WriteLine("Method epilogue: " + method.Name); return(false); }
public bool Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args) { ExecutionContext.__SetThreadLevelCallContext(null); return(false); }
bool IRunHook.Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args) { Aver.Fail("I crashed in Run prologue"); return(false); }
bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { Aver.Fail("I crashed in Run epilogue"); return(false); }
public override void After(Runner runner, object runnable, FID id, MethodInfo mi, RunAttribute attr, object state, ref Exception error) { try { var aversThrows = CheckMethodError(mi, error); if (aversThrows) { error = null; } } catch (Exception err) { error = err; } }
public override object Before(Runner runner, object runnable, FID id, MethodInfo mi, RunAttribute attr, ref object[] args) => null;
bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { m_RunEpilogueCount++; "Method epilogue: {0}".SeeArgs(method.Name); return(false); }
bool IRunHook.Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args) { GC.Collect(); return(false); }
public bool Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { ExecutionContext.__SetThreadLevelCallContext(null); return(false); }
bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error) { GC.Collect(); return(false); }
bool IRunHook.Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args) { GC.Collect(); Directory.CreateDirectory(LOCAL_ROOT); return(false); }