Beispiel #1
0
        static Result1Processed ProcessResult1(TaskResult1 r1)
        {
            marker.Measure("Process result 1 start");

            Thread.Sleep(50);

            marker.Measure("Process result 1 end");

            return(new Result1Processed()
            {
                FinalResult = r1.APIResult1 + " processed"
            });
        }
Beispiel #2
0
        static Result1Processed ProcessResult(TaskResult1 r1, int taskId, int durationMs = 50)
        {
            marker.Measure($"Process result {taskId} start");

            Thread.Sleep(durationMs);

            marker.Measure($"Process result {taskId} end");

            return(new Result1Processed()
            {
                FinalResult = r1.APIResult1 + " processed"
            });
        }