Beispiel #1
0
 bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     return(false);//<--- The exception is NOT handled here, do default handling
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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;
Beispiel #5
0
 bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     DisposableObject.DisposeAndNull(ref m_Store);
     return(false);
 }
Beispiel #6
0
 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);
 }
Beispiel #8
0
 bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     m_RunEpilogueCount++;
     Console.WriteLine("Method epilogue: " + method.Name);
     return(false);
 }
Beispiel #9
0
 public bool Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args)
 {
     ExecutionContext.__SetThreadLevelCallContext(null);
     return(false);
 }
Beispiel #10
0
 bool IRunHook.Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args)
 {
     Aver.Fail("I crashed in Run prologue");
     return(false);
 }
Beispiel #11
0
 bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     Aver.Fail("I crashed in Run epilogue");
     return(false);
 }
Beispiel #12
0
 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;
     }
 }
Beispiel #13
0
 public override object Before(Runner runner, object runnable, FID id, MethodInfo mi, RunAttribute attr, ref object[] args)
 => null;
Beispiel #14
0
 bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     m_RunEpilogueCount++;
     "Method epilogue: {0}".SeeArgs(method.Name);
     return(false);
 }
Beispiel #15
0
 bool IRunHook.Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args)
 {
     GC.Collect();
     return(false);
 }
Beispiel #16
0
 public bool Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     ExecutionContext.__SetThreadLevelCallContext(null);
     return(false);
 }
Beispiel #17
0
 bool IRunHook.Epilogue(Runner runner, FID id, MethodInfo method, RunAttribute attr, Exception error)
 {
     GC.Collect();
     return(false);
 }
Beispiel #18
0
 bool IRunHook.Prologue(Runner runner, FID id, MethodInfo method, RunAttribute attr, ref object[] args)
 {
     GC.Collect();
     Directory.CreateDirectory(LOCAL_ROOT);
     return(false);
 }