Beispiel #1
0
 public void RetryExecTest()
 {
     try
     {
         PolicyHelper.RetryExec <DivideByZeroException>(() =>
         {
             Console.WriteLine("func.........");
             throw new DivideByZeroException();
         });
     }
     catch (Exception ex)
     {
     }
     Assert.Pass();
 }