Beispiel #1
0
 public virtual void RunIsolated(IBlock4 block)
 {
     lock (Lock())
     {
         block.Run();
     }
 }
 public static long Time(IBlock4 block)
 {
     Db4objects.Db4o.Foundation.StopWatch stopWatch = new Db4objects.Db4o.Foundation.StopWatch
                                                          ();
     stopWatch.Start();
     block.Run();
     stopWatch.Stop();
     return(stopWatch.Elapsed());
 }
Beispiel #3
0
		public static long Time(IBlock4 block)
		{
			Db4objects.Db4o.Foundation.StopWatch stopWatch = new Db4objects.Db4o.Foundation.StopWatch
				();
			stopWatch.Start();
			block.Run();
			stopWatch.Stop();
			return stopWatch.Elapsed();
		}
Beispiel #4
0
 public static long Time(IBlock4 block)
 {
     var stopWatch = new StopWatch
         ();
     stopWatch.Start();
     block.Run();
     stopWatch.Stop();
     return stopWatch.Elapsed();
 }
Beispiel #5
0
        public static long Time(IBlock4 block)
        {
            var stopWatch = new StopWatch
                                ();

            stopWatch.Start();
            block.Run();
            stopWatch.Stop();
            return(stopWatch.Elapsed());
        }
Beispiel #6
0
 private void WithException(IBlock4 block)
 {
     doThrow = true;
     try
     {
         block.Run();
     }
     catch (Exception)
     {
     }
     finally
     {
         doThrow = false;
     }
 }
		public virtual void RunIsolated(IBlock4 block)
		{
			lock (this)
			{
				block.Run();
			}
		}
Beispiel #8
0
 public _IBlock4_110(IBlock4 block)
 {
     this.block = block;
 }
Beispiel #9
0
 public _IBlock4_108(GenericReplicationSession _enclosing, IBlock4 block)
 {
     this._enclosing = _enclosing;
     this.block      = block;
 }
Beispiel #10
0
 private void RunIsolated(IBlock4 block)
 {
     _providerA.RunIsolated(new _IBlock4_108(this, block));
 }
		private void WithException(IBlock4 block)
		{
			doThrow = true;
			try
			{
				block.Run();
			}
			catch (Exception)
			{
			}
			finally
			{
				doThrow = false;
			}
		}
				public _IBlock4_110(IBlock4 block)
				{
					this.block = block;
				}
			public _IBlock4_108(GenericReplicationSession _enclosing, IBlock4 block)
			{
				this._enclosing = _enclosing;
				this.block = block;
			}
		private void RunIsolated(IBlock4 block)
		{
			_providerA.RunIsolated(new _IBlock4_108(this, block));
		}