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()); }
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()); }