protected void AddToWorkerThreadCommandHandler(AddToWorkerThreadCommand cmd) { #if PERFORMANCE_TEST var ptest = Service.Performance.PerformanceTest.Get(); ptest.Start("AddToWorkerThreadCommand"); #endif cmd.result = _service.AddToWorkerThread(cmd.act, cmd.onFinished, cmd.global); #if PERFORMANCE_TEST // now stop the watches ptest.Stop("AddToWorkerThreadCommand"); #endif }
protected void AddToWorkerThreadCommandHandler(AddToWorkerThreadCommand cmd) { //Profiler.BeginSample("AddToWorkerThreadCommandHandler"); cmd.result = _service.AddToWorkerThread(cmd.act, cmd.onFinished); //Profiler.EndSample(); }