示例#1
0
 private async Task DoComputationWorks()
 {
     await WorkWrapperAsync(nameof(DoComputationWorks), () =>
     {
         return(Task.Run(() => CPUIntensiveComputation.RecusiveCall1(12)));
     }).ConfigureAwait(false);
 }
        public ActionResult Contact()
        {
            var ai = new TelemetryClient();

            try
            {
                CPUIntensiveComputation.RecusiveCall1(12);
            }
            catch (Exception ex)
            {
                ai.TrackException(ex);
            }
            ViewBag.Message = "Your contact page.";

            return(View());
        }
示例#3
0
 public IActionResult Contact()
 {
     ViewData["Message"] = "Your contact page.";
     CPUIntensiveComputation.RecusiveCall1(12);
     return(View());
 }
 public ActionResult Contact()
 {
     ViewBag.Message = "Your contact page.";
     CPUIntensiveComputation.RecusiveCall1(12);
     return(View());
 }