Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aspects
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15695
Modified Files:
RetryAdvice.cs
Log Message:
simple fixes to compile on .net 1.0
Index: RetryAdvice.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Aop/Aspects/RetryAdvice.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RetryAdvice.cs 10 Oct 2007 07:38:17 -0000 1.2
--- RetryAdvice.cs 10 Oct 2007 17:10:51 -0000 1.3
***************
*** 191,195 ****
object result = expression.GetValue(null, callContextDictionary);
decimal d = decimal.Parse(result.ToString());
! decimal rounded = decimal.Round(d*1000);
int sleepInSeconds = decimal.ToInt32(rounded);
Thread.Sleep(sleepInSeconds);
--- 191,195 ----
object result = expression.GetValue(null, callContextDictionary);
decimal d = decimal.Parse(result.ToString());
! decimal rounded = decimal.Round(d*1000,0);
int sleepInSeconds = decimal.ToInt32(rounded);
Thread.Sleep(sleepInSeconds);
|