Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Safe way to call async method in EPiServer scheduled job?

$
0
0

Hi!

Can anyone give an example of how to safely call an async method in an EPiServer scheduled job?

The following is - as far as I know - not safe:

IDummyRepository repo = new DummyRepository();
var dummies = repo.GetDummiesAsync().Result;

Viewing all articles
Browse latest Browse all 6894

Trending Articles