0

Is it possible to make async calls inside Actions in Orchard CMS module controlle?

something like

public async Task<ActionResult> Index()
{
     var result = await Service.Get();
     return View();
}

Right now it just continue the execution and it doesn't get back to return View()

VictorR
  • 31
  • 6

1 Answers1

0

Deadlocking perhaps?

var result = await Service.Get().ConfigureAwait(false);

See this question for more information about ConfigureAwait(false): Best practice to call ConfigureAwait for all server-side code

Community
  • 1
  • 1
Yandawl
  • 166
  • 1
  • 10